Closed Bug 685156 Opened 8 years ago Closed 8 years ago

WebGL's hint function incorrectly generates an invalid enumeration

Categories

(Core :: Canvas: WebGL, defect)

defect
Not set

Tracking

()

RESOLVED FIXED
mozilla14

People

(Reporter: pjcozziAGI, Assigned: jgilbert)

References

Details

(Keywords: testcase)

Attachments

(2 files)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20100101 Firefox/5.0
Build ID: 20110622232440

Steps to reproduce:

Made valid calls to WebGL's hint function from JavaScript, e.g.:

   gl.hint(gl.GENERATE_MIPMAP_HINT, gl.DONT_CARE);


Actual results:

The call generated an gl.INVALID_ENUM.


Expected results:

No error should be generated, e.g., calling gl.getError() should return gl.NO_ERROR, and WeGL's mipmap hint state should change.
Attachment #558807 - Attachment mime type: text/plain → text/html
Component: General → Canvas: WebGL
Keywords: testcase
Product: Fennec → Core
QA Contact: general → canvas.webgl
Version: Firefox 7 → Trunk
Mozilla/5.0 (Windows NT 5.1; rv:9.0a1) Gecko/20110919 Firefox/9.0a1
Mozilla/5.0 (X11; Linux x86_64; rv:9.0a1) Gecko/20110918 Firefox/9.0a1
Mozilla/5.0 (Windows NT 6.1; rv:9.0a1) Gecko/20110919 Firefox/9.0a1
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:9.0a1) Gecko/20110915 Firefox/9.0a1

Reproducible on Ubuntu 11.04, Mac OS 10.7, Windows XP and 7 using the test case provided in Comment 0. Invalid enumeration error is generated for all functions, contrary to other browsers.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Linux → All
Hardware: x86_64 → All
Assignee: nobody → jgilbert
Status: NEW → ASSIGNED
This appears to be a regression from bug 684853.
Adds GENERATE_MIPMAP_HINT to the 'list' of acceptable inputs.
Try run:
https://tbpl.mozilla.org/?tree=Try&rev=29a579aab730
Attachment #611663 - Flags: review?(bjacob)
Attachment #611663 - Flags: review?(bjacob) → review+
http://hg.mozilla.org/mozilla-central/rev/1ace3d2af4b7
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.