From 1ee38fc7f0ec6d42d7008271c9d08e1813aab10c Mon Sep 17 00:00:00 2001 From: codeanticode Date: Tue, 11 Dec 2012 23:07:40 +0000 Subject: [PATCH] added buffer swap in Display() to solve the garbage problem --- core/src/processing/opengl/PGL.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/processing/opengl/PGL.java b/core/src/processing/opengl/PGL.java index 7de50aa18..60b75d85f 100644 --- a/core/src/processing/opengl/PGL.java +++ b/core/src/processing/opengl/PGL.java @@ -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()) {