From c8b66c5d08030522a12f0b4a8dc98a2ad6a0e646 Mon Sep 17 00:00:00 2001 From: Phil Jordan Date: Mon, 17 Oct 2016 16:32:04 +1300 Subject: j3dcore: JoglPipeline.resetRenderingAttributes does not call gl.glDisable(GL.GL_STENCIL_TEST); Fixes Bug 1325: https://jogamp.org/bugzilla/show_bug.cgi?id=1325 Signed-off-by: Phil Jordan Signed-off-by: Harvey Harrison --- src/javax/media/j3d/JoglPipeline.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/javax/media/j3d/JoglPipeline.java b/src/javax/media/j3d/JoglPipeline.java index 269512b..c45fd61 100644 --- a/src/javax/media/j3d/JoglPipeline.java +++ b/src/javax/media/j3d/JoglPipeline.java @@ -7068,6 +7068,8 @@ void swapBuffers(Canvas3D cv, Context ctx, Drawable drawable) { gl.glDepthFunc(GL.GL_LEQUAL); gl.glEnable(GL2.GL_COLOR_MATERIAL); gl.glDisable(GL.GL_COLOR_LOGIC_OP); + gl.glDisable(GL.GL_STENCIL_TEST); + } // native method for setting default texture -- cgit v1.2.3