Closed
Bug 631643
Opened 15 years ago
Closed 15 years ago
Check for ARB_ES2_compatibility before using it, fix MAX_VARYING_VECTORS emulation, clean up getParameters
Categories
(Core :: Graphics: CanvasWebGL, defect)
Core
Graphics: CanvasWebGL
Tracking
()
RESOLVED
FIXED
People
(Reporter: bjacob, Assigned: bjacob)
Details
Attachments
(1 file, 2 obsolete files)
11.24 KB,
patch
|
vlad
:
review+
|
Details | Diff | Splinter Review |
This should make us pass a few tests, so need a tryserver run and update failing-tests-xx.txt files.
Attachment #509861 -
Flags: review?(vladimir)
Attachment #509861 -
Attachment is patch: true
Attachment #509861 -
Attachment mime type: application/octet-stream → text/plain
Attachment #509861 -
Flags: review?(vladimir) → review+
Assignee | ||
Comment 1•15 years ago
|
||
OK, this makes us pass gl-get-calls.html
Updated•15 years ago
|
Attachment #509861 -
Flags: approval2.0+
Assignee | ||
Comment 2•15 years ago
|
||
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Backed out due to test failures
http://hg.mozilla.org/mozilla-central/pushloghtml?changeset=80211f053c46
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 4•15 years ago
|
||
So, I made a new tryserver run with lots of extra debug info,
http://tinderbox.mozilla.org/showlog.cgi?log=MozillaTry/1297554321.1297556558.29898.gz#err0
and it tells me that on Mac, the extension ARB_ES2_compatibility is absent (as it is on Linux), we then call glGetIntegerv(LOCAL_GL_MAX_VERTEX_OUTPUT_COMPONENT) and that generates a GL_INVALID_ENUM error on Mac, while it doesn't generate an error on Linux.
Assignee | ||
Comment 5•15 years ago
|
||
OK, here's the explanation: MAX_VERTEX_OUTPUT_COMPONENT is mentioned for the first time in the OpenGL 3.2 spec.
Assignee | ||
Comment 6•15 years ago
|
||
New patch takes a simpler way to computing mGLMaxVaryingVectors: instead of querying these opengl 3.2 pnames, just use their minimum legal value from the spec.
Pushed to try: http://tbpl.mozilla.org/?tree=MozillaTry&rev=9a7f6ef1060a
Attachment #512035 -
Flags: review?(vladimir)
Assignee | ||
Updated•15 years ago
|
Attachment #509861 -
Attachment is obsolete: true
Comment on attachment 512035 [details] [diff] [review]
patch updated
Hmm, I don't really like this; there must be a way to query this earlier? Otherwise we should just skip querying if we're on GL < 3.2 (or don't have whatever extension they came in on). We already don't give authors all that much information about the hardware they're on, let's not lie to them about capabilities...
Assignee | ||
Comment 8•15 years ago
|
||
OK, here you go. Now we try to query these values, and carefully glGetError() to handle the case where they're not available.
Attachment #512035 -
Attachment is obsolete: true
Attachment #512205 -
Flags: review?(vladimir)
Attachment #512035 -
Flags: review?(vladimir)
Comment on attachment 512205 [details] [diff] [review]
patch updated
Looks great, thanks!
Attachment #512205 -
Flags: review?(vladimir) → review+
Assignee | ||
Comment 10•15 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 15 years ago → 15 years ago
Resolution: --- → FIXED
Updated•14 years ago
|
Assignee: nobody → bjacob
You need to log in
before you can comment on or make changes to this bug.
Description
•