Closed
Bug 740611
Opened 13 years ago
Closed 13 years ago
bogus WebGL error in texSubImage2D on DOMElement/ImageData with type=FLOAT
Categories
(Core :: Graphics: CanvasWebGL, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 749711
People
(Reporter: bjacob, Unassigned)
Details
(Whiteboard: webgl-conformance)
Testcase:
http://hg.mozilla.org/users/bjacob_mozilla.com/webgl-perf-tests/raw-file/807d31434977/convert-DOMElement-to-rgb-float.html
Expected:
no error. No error in Chrome.
Actual:
WebGL: texSubImage2D: not enough data for operation (need 12582912, have 4194304) @ http://hg.mozilla.org/users/bjacob_mozilla.com/webgl-perf-tests/raw-file/807d31434977/TestTextureConversion.js:70
Reporter | ||
Updated•13 years ago
|
No longer blocks: webgl-conformance
Whiteboard: webgl-conformance webgl-test-needed
Comment 1•13 years ago
|
||
Seems like this should be added to the conformance tests.
Comment 2•13 years ago
|
||
Er, a FLOAT+RGB canvas at 1024x1024 is 12MiB.
You seem to be relying on context2d.createImageData(1024, 1024) to create your buffer, which only allocates 4MiB, since it assumes it's dealing with a 32bbp canvas of size 1024x1024.
Are you sure this should not be an error in Chrome?
Reporter | ||
Updated•13 years ago
|
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
Reporter | ||
Comment 4•13 years ago
|
||
Removing webgl-test-needed as this is a dupe of another webgl-test-needed bug.
Whiteboard: webgl-conformance webgl-test-needed → webgl-conformance
You need to log in
before you can comment on or make changes to this bug.
Description
•