Bug 1325 - JoglPipeline.resetRenderingAttributes does not call gl.glDisable(GL.GL_STENCIL_TEST);
Summary: JoglPipeline.resetRenderingAttributes does not call gl.glDisable(GL.GL_STENC...
Status: RESOLVED FIXED
Alias: None
Product: Java3D
Classification: General
Component: core (show other bugs)
Version: 2.4.0
Hardware: All all
: P4 minor
Assignee: Phil Jordan
URL:
Depends on:
Blocks:
 
Reported: 2016-10-17 05:29 CEST by Phil Jordan
Modified: 2019-03-29 14:19 CET (History)
1 user (show)

See Also:
Type: DEFECT
SCM Refs:
Workaround: TRUE


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Phil Jordan 2016-10-17 05:29:41 CEST
JoglPipeline.resetRenderingAttributes does not call 
gl.glDisable(GL.GL_STENCIL_TEST);

If the previous updateRenderingAttributes() call has enabled this function, then an appearance that has a null RenderingAttributes will not clear the stencil function and hence incorrectly apply the same stencil values to the next draw call.
Comment 1 Phil Jordan 2016-10-17 05:31:17 CEST
A work around to this bug is to simply set a RenderingAttributes to all Appearance objects
Comment 2 Phil Jordan 2016-10-26 02:01:31 CEST
Fixed in branch 1.7.0