Closed Bug 1082225 Opened 10 years ago Closed 5 years ago

WebGL: Fix bogus assert validating mStencilBufferRefFront/Back

Categories

(Core :: Graphics: CanvasWebGL, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dvander, Assigned: dvander)

Details

Attachments

(1 file, 2 obsolete files)

We're caching a value that is clamped internally, but not reading back the cached version as clamped.
This is actually a dupe of 1015561.
Let's just take the pre-r+'d patch there.
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
Comment on attachment 8504366 [details] [diff] [review]
bug1082225-bogus-clamp-assert.patch

Review of attachment 8504366 [details] [diff] [review]:
-----------------------------------------------------------------

::: dom/canvas/WebGLContext.h
@@ +1319,5 @@
>      GLfloat mColorClearValue[4];
>      GLint mStencilClearValue;
>      GLfloat mDepthClearValue;
>  
> +    GLint ClampStencilRef(GLint ref);

We don't want to expose this publically, since it's really just for our assertions, and surprisingly calls into GL instead of just recovering our expected values.
Attachment #8504366 - Flags: review?(jgilbert)
Attached patch fix-clamp-assert.patch (obsolete) — Splinter Review
Looks like it's an actual int to GL, so it needs clamping rather than masking.
Attachment #8504366 - Attachment is obsolete: true
Attachment #8510088 - Flags: review?(jgilbert)
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
(w/ stray bits removed)
Attachment #8510088 - Attachment is obsolete: true
Attachment #8510088 - Flags: review?(jgilbert)
Attachment #8510090 - Flags: review?(jgilbert)
Attachment #8510090 - Flags: review?(jgilbert) → review+

This code was removed.

Status: REOPENED → RESOLVED
Closed: 10 years ago5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: