Closed
Bug 1372490
Opened 8 years ago
Closed 8 years ago
GetError() returns GL_CONTEXT_LOST not GL_CONTEXT_LOST_WEBGL
Categories
(Core :: Graphics: CanvasWebGL, enhancement)
Core
Graphics: CanvasWebGL
Tracking
()
RESOLVED
FIXED
mozilla56
Tracking | Status | |
---|---|---|
firefox56 | --- | fixed |
People
(Reporter: jerry, Assigned: jerry)
References
Details
(Whiteboard: gfx-noted)
Attachments
(1 file)
1.04 KB,
patch
|
jgilbert
:
review+
|
Details | Diff | Splinter Review |
It should be GL_CONTEXT_LOST_WEBGL instead of GL_CONTEXT_LOST.
From:
https://www.khronos.org/registry/webgl/specs/latest/1.0/
[WebGLHandlesContextLoss] GLenum getError() (OpenGL ES 2.0 §2.5, man page)
If the context's webgl context lost flag is set, returns CONTEXT_LOST_WEBGL the first time this method is called. Afterward, returns NO_ERROR until the context has been restored.
Assignee | ||
Comment 1•8 years ago
|
||
MozReview-Commit-ID: KYr0cKoeWJo
Attachment #8877017 -
Flags: review?(jgilbert)
Comment 2•8 years ago
|
||
Comment on attachment 8877017 [details] [diff] [review]
Fix the wrong return value for webgl context-lost.
Review of attachment 8877017 [details] [diff] [review]:
-----------------------------------------------------------------
This is the same value, just technically different names. We have a history of omitting the vendor suffix where possible, which is what we do here.
Attachment #8877017 -
Flags: review?(jgilbert) → review-
Updated•8 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
Summary: Fix the wrong return value for webgl context-lost. → GetError() returns GL_CONTEXT_LOST not GL_CONTEXT_LOST_WEBGL
Updated•8 years ago
|
Component: Graphics → Canvas: WebGL
Updated•8 years ago
|
Whiteboard: gfx-noted
Assignee | ||
Comment 3•8 years ago
|
||
From https://raw.githubusercontent.com/KhronosGroup/OpenGL-Registry/master/xml/gl.xml,
the value of GL_CONTEXT_LOST and GL_CONTEXT_LOST_WEBGL are different.
<enum value="0x0507" name="GL_CONTEXT_LOST"/>
<enum value="0x0507" name="GL_CONTEXT_LOST_KHR"/>
<enum value="0x9242" name="GL_CONTEXT_LOST_WEBGL"/>
Status: RESOLVED → REOPENED
Flags: needinfo?(jgilbert)
Resolution: WONTFIX → ---
Comment 4•8 years ago
|
||
Ah, I see grep failed me here, because our code was wrong.
Flags: needinfo?(jgilbert)
Comment 5•8 years ago
|
||
Comment on attachment 8877017 [details] [diff] [review]
Fix the wrong return value for webgl context-lost.
Review of attachment 8877017 [details] [diff] [review]:
-----------------------------------------------------------------
Confirmed that these are different values in the bug this bug depends on.
Attachment #8877017 -
Flags: review- → review+
Assignee | ||
Comment 6•8 years ago
|
||
Pushed by hshih@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/0d3a9cc05519
GetError() returns GL_CONTEXT_LOST not GL_CONTEXT_LOST_WEBGL. r=jgilbert
Comment 8•8 years ago
|
||
bugherder |
Status: REOPENED → RESOLVED
Closed: 8 years ago → 8 years ago
status-firefox56:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
You need to log in
before you can comment on or make changes to this bug.
Description
•