PDA

View Full Version : NO_ERROR_FAILTURE in texImage2D method



loku
11-11-2009, 02:55 PM
I've found this:
http://code.google.com/p/chromium/source/browse/trunk/samples/webgl/procedural-texture-test/?r=1328
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?

vladimir
11-18-2009, 04: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.

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