Can someone enlighten me as to what sort of conditions would cause Display.update()'s call to Context.swapBuffers() to raise a GL error: Invalid Value? I see that Display.update() does this:
// We paint only when the window is visible or dirty
if (isVisible() || isDirty()) {
Util.checkGLError();
try {
Context.swapBuffers();
} catch (LWJGLException e) {
throw new RuntimeException(e);
}
}
So the error must be arising from the Context.swapBuffers() call. (I check glError() after Display.update() completes)
The error only occurs the first time I Display.update(), afterwards no error occurs.
Any ideas?
Thanks!