From 2193ef87a458c13ceac948c53615fa2478947ffc Mon Sep 17 00:00:00 2001 From: codeanticode Date: Sun, 5 Jan 2014 16:01:31 -0500 Subject: [PATCH] some commented code to handle #2296 --- core/src/processing/opengl/PGraphicsOpenGL.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/src/processing/opengl/PGraphicsOpenGL.java b/core/src/processing/opengl/PGraphicsOpenGL.java index 498320f7a..63d74195d 100644 --- a/core/src/processing/opengl/PGraphicsOpenGL.java +++ b/core/src/processing/opengl/PGraphicsOpenGL.java @@ -5241,6 +5241,13 @@ public class PGraphicsOpenGL extends PGraphics { pgl.depthMask(true); } + // Code to use instead in order to fix + // https://github.com/processing/processing/issues/2296 +// if (!hints[DISABLE_DEPTH_MASK]) { +// pgl.clearDepth(1); +// pgl.clear(PGL.DEPTH_BUFFER_BIT); +// } + pgl.clearColor(backgroundR, backgroundG, backgroundB, backgroundA); pgl.clear(PGL.COLOR_BUFFER_BIT); if (0 < parent.frameCount) {