WebGL-GTA icon indicating copy to clipboard operation
WebGL-GTA copied to clipboard

WebGL: INVALID_VALUE: texImage2D: width or height out of range

Open brcontainer opened this issue 11 years ago • 2 comments

Google Chrome 32:

WebGL: INVALID_VALUE: texImage2D: width or height out of range ThreeDebug.js:14388

Waring (probably issues this warning because of previous error):

[.WebGLRenderingContext]RENDER WARNING: texture bound to texture unit 0 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering or is not 'texture complete'


Firefox 26:

Error: WebGL: texImage2D: the maximum texture size for level 0 is 4096 ThreeDebug.js:14388


The problem is apparently here:

_gl.texImage2D( _gl.TEXTURE_2D, 0, _gl.RGBA, _gl.RGBA, _gl.UNSIGNED_BYTE, texture.image );

I believe that some object has not received valid data, perhaps a "console.log" to help find the problem.

brcontainer avatar Jan 25 '14 14:01 brcontainer

browser/os?

niklasvh avatar Jan 26 '14 12:01 niklasvh

Firefox 26 (Windows 7 64bit) Google Chrome 32 (Windows 7 64bit)

brcontainer avatar Jan 26 '14 16:01 brcontainer