Closed
Bug 876929
Opened 11 years ago
Closed 11 years ago
Actually check if we can support OES_standard_derivatives
Categories
(Core :: Graphics: CanvasWebGL, defect)
Core
Graphics: CanvasWebGL
Tracking
()
RESOLVED
FIXED
mozilla24
People
(Reporter: jgilbert, Assigned: jgilbert)
Details
Attachments
(1 file)
3.48 KB,
patch
|
bjacob
:
review+
|
Details | Diff | Splinter Review |
We currently unconditionally support OES_standard_derivatives, even though we should be checking if the underlying implementation supports it. It looks like our tegra2 test slaves don't support it, among other hypothetical implementations.
Assignee | ||
Comment 1•11 years ago
|
||
Assignee: nobody → jgilbert
Attachment #755061 -
Flags: review?(bjacob)
Comment 2•11 years ago
|
||
Comment on attachment 755061 [details] [diff] [review] patch: Check for the extension on GLES2. I found this more clear written as a single logical expression than with an if.
Attachment #755061 -
Flags: review?(bjacob) → review+
Assignee | ||
Comment 3•11 years ago
|
||
I always find the opposite. Sure, splitting it is more verbose, but following the logic is always trickier with compound expressions. Sure, we do use the meme '!gles2 OR Supports(x)' in a number of places, but this always makes me look twice. I always prefer trimming the possibility tree. In this case, we first handle non-GLES2, then we return whether or not we (now known to be GLES2) support the extension. In my opinion, this lends itself much better to later expansion and more complicated conditions, as well as naive intelligibility.
Assignee | ||
Comment 4•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/779a5cfb5395
Assignee | ||
Comment 5•11 years ago
|
||
Backed out: https://tbpl.mozilla.org/?tree=Mozilla-Inbound&rev=2defb982c769 Looks like a warnings-as-errors failure. Also I got the bug number wrong. :C And then I posted in a different also-wrong bug. Time for a break.
Assignee | ||
Comment 6•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/0278e6f6332d
Comment 7•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/0278e6f6332d
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
You need to log in
before you can comment on or make changes to this bug.
Description
•