added buffer swap in Display() to solve the garbage problem

This commit is contained in:
codeanticode
2012-12-11 23:07:40 +00:00
parent 4e70370bf7
commit 1ee38fc7f0

View File

@@ -2640,6 +2640,7 @@ public class PGL {
gl.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT |
GL.GL_STENCIL_BUFFER_BIT);
firstFrame = false;
drawable.swapBuffers();
}
if (capabilities.isFBO()) {