Closed Bug 586938 Opened 9 years ago Closed 9 years ago
missing VIEWPORT enum in Web
Component: General → Canvas: WebGL
Product: Firefox → Core
QA Contact: general → canvas.webgl
Version: unspecified → Trunk
yes, we know about this problem. The real problem is that there already is a function, gl.viewport(). And we have trouble with identifiers that only differ by case. But Vlad's working on this.
Assignee: nobody → vladimir
Yep, it's currently VIEWPORT_RECT, but at some point this will be fixed. In the meantime you could use the actual hex value (0x0BA2) and get the same behaviour on all browsers.. ugly, but would work.
Status: UNCONFIRMED → NEW
blocking2.0: --- → final+
Ever confirmed: true
Summary: WebGL VIEWPORT preference enum not implemented → missing VIEWPORT enum in WebGL context
Vlad, do we have any chance of actually fixing this in a world involving xpidl?
9 years ago
Duplicate of this bug: 611924
Ended up being a lot simpler than I feared. Thanks to mrbkap for the pointers!
Attachment #498897 - Flags: review?(mrbkap)
Comment on attachment 498897 [details] [diff] [review] finally It would be better to detect failure from JS_DefineProperty and return NS_ERROR_FAILURE or something similar in that case. Looks good otherwise.
Attachment #498897 - Flags: review?(mrbkap) → review+
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.