Android OpenGL ES Framebuffer objects - rendering depth-buffer to texture
问题 I am using an Android device running Froyo supporting OpenGL ES 1.1 and OpenGL ES 2.0 I want to render the depth buffer to a texture. Having seen a number of examples for OpenGL, OpenGL ES on other platforms (including iPhone) I have tried a number of FBO configurations. I seem to be able to get an FBO set-up with a colour texture but every time I attach a depth texture it fails. My current code is based on this example but creating a colour texture as well instead of setting draw and read