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) {