put clearDepthStencil() in the right spot

This commit is contained in:
codeanticode
2016-10-12 17:43:27 -04:00
parent 45062aff5e
commit ab6443486a
@@ -1645,8 +1645,6 @@ public class PGraphicsOpenGL extends PGraphics {
pgl.activeTexture(PGL.TEXTURE0);
pgl.clearDepthStencil();
if (hints[DISABLE_DEPTH_MASK]) {
pgl.depthMask(false);
} else {
@@ -6890,6 +6888,8 @@ public class PGraphicsOpenGL extends PGraphics {
normalX = normalY = 0;
normalZ = 1;
pgl.clearDepthStencil();
if (hints[DISABLE_DEPTH_MASK]) {
pgl.depthMask(false);
} else {