Imagination PowerVR SDK Blog

Can I read depth-texture?


#1
 

== EMULATOR : SGX530 ===

 

When I generate FBO,

 

glTexImage2D(GL_TEXTURE_2D, 0, GL_DEPTH_COMPONENT24_OES, m_lWidth, m_lHeight, 0, GL_DEPTH_COMPONENT, GL_UNSIGNED_INT_24_8_OES, NULL);

 


glTexImage2D(GL_TEXTURE_2D, 0, GL_DEPTH_COMPONENT32_OES, m_lWidth, m_lHeight, 0, GL_DEPTH_COMPONENT, GL_UNSIGNED_INT, NULL);

 

.... etc

 

return 0x0520 (GL_INVALID_OPERATION)

 

I want to read depth-texture, but it seems not to work...

 

Can't I read the depth-texture?Cry