Can I read depth-texture?

This topic contains 0 replies, has 1 voice, and was last updated by  honestee 8 years ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #29937

    honestee
    Member
     

    == 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

     
Viewing 1 post (of 1 total)
You must be logged in to reply to this topic.