mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
put clearDepthStencil() in the right spot
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user