Closed Bug 615001 Opened 14 years ago Closed 13 years ago

Fix readPixels (pass the gl-enums-test.html test)

Categories

(Core :: Graphics: CanvasWebGL, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: bjacob, Unassigned)

Details

Attachments

(1 file)

We had some weird code in there, making us fail that test.
Attached patch fix readpixelsSplinter Review
Attachment #493454 - Flags: review?(vladimir)
Comment on attachment 493454 [details] [diff] [review]
fix readpixels

erm wait, I just added that code in bug 612336  (was checked in with wrong bug #).  We have to synthesize INVALID_OPERATION if both format and type are invalid; the test even says:

  // note that the GL error is INVALID_OPERATION if both format and type are invalid, but INVALID_ENUM if only one is.

Need to update our copy of the test suite with latest from svn again looks like.
ok, closing.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → INVALID
We're still failing this test (from svn). Also, it doesn't seem to have anymore the comment that you were referring to:

https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/sdk/tests/conformance/gl-enum-tests.html

Moreover I can't see where in the WebGL or GL ES spec it would prescribe this behavior. It seems to me that at some point in the past this test was wrong, and has been fixed since.
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Attachment #493454 - Flags: review?(vladimir)
This test is now passing on all platform on the build slaves.
Status: REOPENED → RESOLVED
Closed: 14 years ago13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: