Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StencilTest WebGL example doesn't reset stencil mask #3

Open
GoogleCodeExporter opened this issue Apr 7, 2015 · 0 comments
Open

StencilTest WebGL example doesn't reset stencil mask #3

GoogleCodeExporter opened this issue Apr 7, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

Viewing the StencilTest example in 
WebGL/Chapter_11/Stencil_Test/Stencil_Test.html on my laptop (GL_VENDOR reports 
"Mesa DRI Intel(R) Ironlake Mobile x86/MMX/SSE2") displays the proper frame the 
first time Draw() is called, and then displays solid green for subsequent 
frames.

The issue seems to be that the WebGL context doesn't reset the stencil 
(espcially glStencilMask) between frames.  The attached patch fixes the problem.

Original issue reported on code.google.com by [email protected] on 4 Dec 2011 at 7:19

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant