framebufferTexture2D has several arguments of which last one is level.
A GLint specifying the mipmap level of the texture image to be attached. Must be 0.
If it must be zero, why do we have to specify it?
framebufferTexture2D has several arguments of which last one is level.
A GLint specifying the mipmap level of the texture image to be attached. Must be 0.
If it must be zero, why do we have to specify it?
It's based on the OpenGL ES 2 spec, and doing it this way enables better forwards compatibility. There's no logical reason why the mipmap level has to be zero (aside from the fact the spec currently doesn't support it), so it enables future versions of the spec the ability to widen the scope of that argument and allow other values without changing the method signature.