WebGL's hint function incorrectly generates an invalid enumeration

RESOLVED FIXED in mozilla14

Status

()

Core
Canvas: WebGL
RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: Patrick Cozzi, Assigned: jgilbert)

Tracking

({testcase})

Trunk
mozilla14
testcase
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments)

(Reporter)

Description

6 years ago
Created attachment 558807 [details]
Testcase to reproduce the problem

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.

Updated

6 years ago
Attachment #558807 - Attachment mime type: text/plain → text/html

Updated

6 years ago
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)

Updated

6 years ago
Assignee: nobody → jgilbert
Status: NEW → ASSIGNED
(Assignee)

Comment 2

6 years ago
This appears to be a regression from bug 684853.
(Assignee)

Comment 3

6 years ago
Created attachment 611663 [details] [diff] [review]
webgl.hint() must accept GENERATE_MIPMAP_HINT

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+
Blocks: 680721
(Assignee)

Comment 4

6 years ago
https://hg.mozilla.org/integration/mozilla-inbound/rev/1ace3d2af4b7
Target Milestone: --- → mozilla14
http://hg.mozilla.org/mozilla-central/rev/1ace3d2af4b7
Status: ASSIGNED → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.