* 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
This commit is contained in:
parent
620e339b7c
commit
873c656e23
@ -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…
x
Reference in New Issue
Block a user