From 873c656e232044c153c31c98243e66137f6c7a9c Mon Sep 17 00:00:00 2001 From: "Sha..rd" Date: Sun, 22 May 2011 17:02:46 +0000 Subject: [PATCH] * 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 --- engine/src/lwjgl-ogl/com/jme3/system/lwjgl/LwjglDisplay.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/lwjgl-ogl/com/jme3/system/lwjgl/LwjglDisplay.java b/engine/src/lwjgl-ogl/com/jme3/system/lwjgl/LwjglDisplay.java index 1444a2526..c906b3abd 100644 --- a/engine/src/lwjgl-ogl/com/jme3/system/lwjgl/LwjglDisplay.java +++ b/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;