Problem ATI+GLSL+PBUFFER, setting gl_FragDepth

Hi,
I want to set gl_FragDepth in my fragment shader. If I do this in my “normal” window context everything works fine, but if I do this in a pbuffer context, the shader seems not to overwrite the standard depth value. The Pbuffer has got depth bits ( 16 for now ), if check them with GL_DEPTH_BITS everything is ok. I can clear the depth buffer in the pbuffer. I can write it the normal way ( with z coord ), but not with the fragment shader. Do you know a solution?

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.