|
|
@ -301,7 +301,7 @@ public class LwjglCanvas extends LwjglAbstractDisplay implements JmeCanvasContex |
|
|
|
// crashes on bad drivers
|
|
|
|
// crashes on bad drivers
|
|
|
|
if (pbufferFormat == null){ |
|
|
|
if (pbufferFormat == null){ |
|
|
|
pbufferFormat = new PixelFormat(settings.getBitsPerPixel(), |
|
|
|
pbufferFormat = new PixelFormat(settings.getBitsPerPixel(), |
|
|
|
0, |
|
|
|
settings.getAlphaBits(), |
|
|
|
settings.getDepthBits(), |
|
|
|
settings.getDepthBits(), |
|
|
|
settings.getStencilBits(), |
|
|
|
settings.getStencilBits(), |
|
|
|
0, // samples
|
|
|
|
0, // samples
|
|
|
@ -315,7 +315,7 @@ public class LwjglCanvas extends LwjglAbstractDisplay implements JmeCanvasContex |
|
|
|
if (canvasFormat == null){ |
|
|
|
if (canvasFormat == null){ |
|
|
|
int samples = getNumSamplesToUse(); |
|
|
|
int samples = getNumSamplesToUse(); |
|
|
|
canvasFormat = new PixelFormat(settings.getBitsPerPixel(), |
|
|
|
canvasFormat = new PixelFormat(settings.getBitsPerPixel(), |
|
|
|
0, |
|
|
|
settings.getAlphaBits(), |
|
|
|
settings.getDepthBits(), |
|
|
|
settings.getDepthBits(), |
|
|
|
settings.getStencilBits(), |
|
|
|
settings.getStencilBits(), |
|
|
|
samples, |
|
|
|
samples, |
|
|
|