OpenGL error 1282 at GLContext.release()
Posted by ac on Feb 14, 2012; 2:04am
URL: https://forum.jogamp.org/OpenGL-error-1282-at-GLContext-release-tp3742304.html
Hello,
I just updated the 3D renderer in Processing from an older version of jogl2 (rc2, I think) to rc5. Things were working quite well with rc2, the only annoying issue was an OpenGL error 1282 (invalid value), apparently triggered by a contest.release() call at the end of my drawing loop. It seems that this error doesn't have any observable consequence, but I still would like this message to go away.
After the update to rc5, I still get the error. I create my OpenGL context as follows:
profile = GLProfile.getMaxFixedFunc();
capabilities = new GLCapabilities(profile);
capabilities.setSampleBuffers(true);
capabilities.setNumSamples(4);
AWTGraphicsScreen screen = (AWTGraphicsScreen)AWTGraphicsScreen.createDefault();
AWTGraphicsConfiguration config = (AWTGraphicsConfiguration)GraphicsConfigurationFactory
.getFactory(AWTGraphicsDevice.class).chooseGraphicsConfiguration(capabilities, capabilities, null, screen);
NativeWindow win = NativeWindowFactory.getNativeWindow(pg.parent, config);
GLDrawableFactory factory = GLDrawableFactory.getFactory(profile);
drawable = factory.createGLDrawable(win);
context = drawable.createContext(null);
Any suggestions?