Skip to content

gl.stencilMask should not be set to a boolean #160

New issue

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

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

Already on GitHub? # to your account

Merged
merged 1 commit into from
May 9, 2023

Conversation

dmliao
Copy link
Contributor

@dmliao dmliao commented Apr 28, 2023

gl.stencilMask expects a GLUint as its parameter, not a boolean value.

This is relevant for BabylonJS/Spector.js#257; when running Spector.js on the webxr samples, captures would fail because Spector was expecting a numerical value in the stencilMask call and got a boolean instead.

I haven't dug super deep into the code, so am not entirely certain that the values I provided are the desired ones for the stencilMask call.

@dmliao dmliao requested a review from cabanier May 8, 2023 20:04
@cabanier cabanier merged commit 0ea02ab into immersive-web:main May 9, 2023
Copy link
Member

@cabanier cabanier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants