android - GLES2 glTexStorage doesn't work on Nexus 7 2013? -


how used gltexstorage

#define gl_glext_prototypes #include <gl2ext.h> 

so gltexstorage2dext direct symbol. checked eglgetprocaddress(), same address.

code snippet :

glgentextures(1, &tex); glbindtexture(gl_texture_2d, tex); gltexparameteri(gl_texture_2d, gl_texture_min_filter, gl_nearest); gltexparameteri(gl_texture_2d, gl_texture_mag_filter, gl_nearest); gltexparameteri(gl_texture_2d, gl_texture_wrap_s, gl_repeat); gltexparameteri(gl_texture_2d, gl_texture_wrap_t, gl_repeat); 

then gives gl_invalid_operation on gltexsubimage2d:

gltexstorage2dext(gl_texture_2d, 1, gl_rgba8_oes, w, h); gltexsubimage2d(gl_texture_2d, 0, 0, 0, w, h, gl_rgba, gl_unsigned_byte, data); 

but doesn't give error:

glteximage2d(gl_texture_2d, 0, gl_rgba, w, h, 0, gl_rgba, gl_unsigned_byte, data); gltexsubimage2d(gl_texture_2d, 0, 0, 0, w, h, gl_rgba, gl_unsigned_byte, data); 

what's wrong use of gltexstorage2dext?

stop using extension. standard part of gl es 3 (which nexus 7 supports) use:

gltexstorage2d 

(ie without ext!)


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -