Login  Register

Enabling Stencil buffer breaks rendering (OSX, R11)?

Posted by ac on Nov 11, 2012; 7:02pm
URL: https://forum.jogamp.org/Enabling-Stencil-buffer-breaks-rendering-OSX-R11-tp4026857.html

If I add the following code:

caps.setDepthBits(24);
caps.setStencilBits(8);
caps.setAlphaBits(8);

to the createGLCanvas() function in the test case TestGLCanvasAWTActionDeadlock01AWT.java, then the rendering breaks. The output just consists in garbage left over in the buffers:

http://imgur.com/qetVY

The problem disappears if I remove the setStencilBits() call. This happens with R11 on OSX 10.8.2, and also using NEWT.