* Fixed crash when changing number of samples/bpp and then calling app.restart()

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7518 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
Sha..rd 14 years ago
parent 620e339b7c
commit 873c656e23
  1. 2
      engine/src/lwjgl-ogl/com/jme3/system/lwjgl/LwjglDisplay.java

@ -102,8 +102,8 @@ public class LwjglDisplay extends LwjglAbstractDisplay {
||pixelFormat.getDepthBits() != pf.getDepthBits()
||pixelFormat.getStencilBits() != pf.getStencilBits()
||pixelFormat.getSamples() != pf.getSamples())){
Display.destroy();
renderer.resetGLObjects();
Display.destroy();
pixelFormatChanged = true;
}
pixelFormat = pf;

Loading…
Cancel
Save