Quantcast
Viewing all articles
Browse latest Browse all 388

Textures and Web GL errors.

So when I run my game sometimes it works fine, and sometimes I'm getting these errors: 

 

WebGL: INVALID_OPERATION: texParameter: no texture bound to GL_TEXTURE_2D

WebGL: INVALID_OPERATION: generateMipmap: no texture bound to GL_TEXTURE_2D

 

WebGL: drawElements: 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'. Or the texture is Float or Half Float type with linear filtering while OES_float_linear or OES_half_float_linear extension is not enabled. (this last one one is happening every frame).

 

First of all, I'm using png's for my textures. Also, I didn't think you needed power of 2 textures for web gl, but I made them that just incase and I'm still getting the error. I'm using assetmanager.


Viewing all articles
Browse latest Browse all 388

Trending Articles