View Full Version : NO_ERROR_FAILTURE in texImage2D method

11-11-2009, 01:55 PM
I've found this:
It's working fine with chrome, but I've tried it in Mozilla and it's throwing an error:

[Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsICanvasRenderingContextWebGL.texImage2D]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: file:///D:/%C5%81UKALDO/webGL/chromium/demo.js :: createCheckerboardTexture :: line 208" data: no]
The line with error is:

gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGB, 2, 2, 0, gl.RGB, gl.UNSIGNED_BYTE, pixels);
Did you tried passing textures like this?

11-18-2009, 03:40 PM
This should be fixed in tomorrow's Firefox nightly build; before this we were supporting JS arrays instead of CanvasArrays in TexImage2D, which was wrong.

11-28-2009, 06:39 AM
now works great. thanks a lot.