@Override public void reshape(final GLAutoDrawable drawable, final int x, final int y, final int width, final int height) { if( !drawable.getAutoSwapBufferMode() ) { final GL2ES2 gl = drawable.getGL().getGL2ES2(); gl.glViewport(0, 0, width, height); } } }
gladAutoSwapBufferMode = glad.getAutoSwapBufferMode(); gladRequiresPreSwap = this.reqPreSwapBuffers(glad.getChosenGLCapabilities()); glad.setAutoSwapBufferMode(false);
if( !drawable.getAutoSwapBufferMode() ) { drawable.swapBuffers();