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)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: bjacob, Assigned: bjacob)

Details

Attachments

(1 file, 2 obsolete files)

Attached patch patch (obsolete) — 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
OK, this makes us pass gl-get-calls.html
Attachment #509861 - Flags: approval2.0+
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
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.
OK, here's the explanation: MAX_VERTEX_OUTPUT_COMPONENT is mentioned for the first time in the OpenGL 3.2 spec.
Attached patch patch updated (obsolete) — Splinter Review
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)
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...
Attached patch patch updatedSplinter Review
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+
Status: REOPENED → RESOLVED
Closed: 15 years ago15 years ago
Resolution: --- → FIXED
Assignee: nobody → bjacob
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: