Closed Bug 1353999 Opened 7 years ago Closed 7 years ago

Firefox prints bogus error message for readPixels

Categories

(Core :: Graphics: CanvasWebGL, defect)

55 Branch
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: mozilla2, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.98 Safari/537.36

Steps to reproduce:

Run the WebGL readPixels conformance test 

https://www.khronos.org/registry/webgl/sdk/tests/conformance/reading/read-pixels-test.html?webglVersion=1&quiet=0

or this example

https://jsfiddle.net/greggman/dfwnqv69/


Actual results:

Check the Web Console, Firefox printed the misleading message

Error: WebGL: readPixels: Out-of-bounds reads with readPixels are deprecated, and may be slow.


Expected results:

At most Firefox should print

Warning: WebGL: readPixels: Out-of-bounds reads with readPixels may be slow.

Reading out of bounds pixels is not an error nor is it deprecated. See WebGL1 and WebGL2 specs
Component: Untriaged → Canvas: WebGL
Product: Firefox → Core
This is now fixed in nightly 55.0a1 (2017-04-16) (64-bit)
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.