android - How to render to a specific mip-level in OpenGLES? -
anyone know how render specific mip-level texture?
currently binding mip-level texture by:
glframebuffertexture2d(gl_framebuffer, gl_color_attachment0, gl_texture_2d, textid, mip-level);
then later in code, this:
glbindframebuffer(gl_framebuffer, fbo_id); drawarrays(...);
but shader not executed!!!
if textid other 0, should generating gl_invalid_value
error.
gl_invalid_value
generated if level not 0 , texture not 0.
i suggest take @ glframebuffertexture2d
opengl es. valid want in normal opengl not in opengl es :-\
Comments
Post a Comment