0 Replies Latest reply on Apr 12, 2014 12:45 PM by xtr3mer

    ATI / AMD depth texture issues when using GL_DEPTH_COMPONENT

    xtr3mer

      Hello,

       

      for some reason my ATI Radeon HD 5850 seems to have problems with...

       

      GL_DEPTH_COMPONENT16

      GL_DEPTH_COMPONENT24

      GL_DEPTH_COMPONENT32

      GL_DEPTH_COMPONENT

       

      When I create an FBO with only a depth texture attachment...

       

      glTexImage2D(..., 0, VGFX_DEPTH_COMPONENT, Width, Height, 0, GL_DEPTH_COMPONENT, GL_FLOAT, NULL);

       

      ...and I use glBlitFramebuffer to copy the depth texture to another compatible texture

      which is rendered to the screen I get strange results, some diagonal lines

      (see attached Bild2.jpg and Bild3.jpg).

       

      But when I use GL_DEPTH24_STENCIL8 instead, everything looks fine (see Bild1.jpg).

       

      What is wrong? There are no gl errors and the frame buffer status is complete.

       

      Help is really appreciated!

       

       

      - Windows 8.1 but also happens on Windows 7

      - Catalyst version 13.12

      - I use core profile 3.2