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

Readme example does not work #2

Open
dy opened this issue Feb 9, 2016 · 1 comment
Open

Readme example does not work #2

dy opened this issue Feb 9, 2016 · 1 comment

Comments

@dy
Copy link
Member

dy commented Feb 9, 2016

Hello!
The example in readme does not work as described:

var baboon = require('baboon-image');
var Texture = require('gl-texture2d');
var texture  = Texture(gl, baboon);

read(texture, function (err, data) {
});

Logs in console:

WebGL: INVALID_OPERATION: readPixels: invalid format/type combination
@dy dy changed the title Does not work Readme example does not work Feb 9, 2016
@aditbiswas1
Copy link

I'm getting the same error, are you using google chrome on mac by any chance? its working on safari for me. i think its a bug with the readPixels method on chrome for mac

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants