Skip to content

Commit c6bf698

Browse files
committed
textureFillBackground did not restore depth mask gl state
various gl functions are disabled to allow background render, then re-enabled at the end of the method, however depth mask was left disabled
1 parent eab9c89 commit c6bf698

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/javax/media/j3d/JoglPipeline.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7361,6 +7361,9 @@ void textureFillBackground(Context ctx, float texMinU, float texMaxU, float texM
73617361
gl.glMatrixMode(GL2.GL_MODELVIEW);
73627362
// Restore attributes
73637363
gl.glPopAttrib();
7364+
7365+
// restore writing to the depth buffer
7366+
gl.glDepthMask(true);
73647367

73657368
}
73667369

0 commit comments

Comments
 (0)