Passing null into texImage2D works in Dartium but fails with dart2js #15359
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
library-webgl
P2
A bug or feature request we're likely to work on
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
What steps will reproduce the problem?
gl.texImage2D(GL.TEXTURE_2D, 0, GL.RGBA, 1, 1, 0, GL.RGBA, GL.UNSIGNED_BYTE, null);
What is the expected output? What do you see instead?
When running with Dartium the texture will render as opaque white. This in and of itself is unexpected, because the WebGL spec specifies that this should be treated as a buffer of sufficient size initialized to 0.
When running with dart2js, however, this function causes the following error to be thrown: "Uncaught Illegal argument(s): Incorrect number or type of arguments"
What version of the product are you using? On what operating system?
Dart SDK version 0.8.10.3_r29803
OSX 10.9
Please provide any additional information below.
Initially reported by @notch via Twitter: https://twitter.com/notch/status/405745124946100224
The text was updated successfully, but these errors were encountered: