Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing null into texImage2D works in Dartium but fails with dart2js #15359

Closed
toji opened this issue Nov 27, 2013 · 3 comments
Closed

Passing null into texImage2D works in Dartium but fails with dart2js #15359

toji opened this issue Nov 27, 2013 · 3 comments
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)

Comments

@toji
Copy link

toji commented Nov 27, 2013

What steps will reproduce the problem?

  1. Create a simple WebGL texture, passing null as the image data:
    gl.texImage2D(GL.TEXTURE_2D, 0, GL.RGBA, 1, 1, 0, GL.RGBA, GL.UNSIGNED_BYTE, null);
  2. Render any geometry with said texture.

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

@kasperl
Copy link

kasperl commented Nov 28, 2013

Added Area-HTML, Triaged labels.

@kevmoo
Copy link
Member

kevmoo commented Apr 7, 2014

Removed Area-HTML label.
Added Area-Library, Library-Html labels.

@alan-knight
Copy link
Contributor

Removed Priority-Unassigned, Library-Html labels.
Added Priority-Medium, Library-WebGl labels.

@toji toji added Type-Defect area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. library-webgl labels Jan 17, 2015
@kevmoo kevmoo added P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) and removed triaged labels Feb 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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)
Projects
None yet
Development

No branches or pull requests

5 participants