Closed Bug 864044 Opened 12 years ago Closed 11 years ago

WebGL assertion failure: depthClearValue == mDepthClearValue and crash [@mozilla::WebGLContext::ForceClearFramebufferWithDefaultValues]

Categories

(Core :: Graphics: CanvasWebGL, defect)

x86_64
macOS
defect
Not set
critical

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: posidron, Unassigned)

References

Details

(Keywords: assertion, crash, testcase)

Attachments

(1 file)

Attached file testcase (deleted) —
Assertion failure: depthClearValue == mDepthClearValue, at content/canvas/src/WebGLContext.cpp:1175 Tested with m-i changeset: 129367:9ff5c0134bbf
Please CC me on these bugs in the future.
My guess is that the floats don't match exactly. Something like this: glClearDepth(0.000001), glGetParameter(DEPTH_CLEAR) => 0.0 assert(0.000001 == 0.0); // fails!
Derp, now I remember why I thought this was so simple: ClearDepth should truncate to [0.0, 1.0], so clearly we shouldn't get 32.0 back if we query it.
Bug 878609 shows another way to trip this assertion.
Depends on: 885911
Fixed by 885911.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: