Trouble with depth textures

This topic contains 0 replies, has 1 voice, and was last updated by  Alemarius Nexus 6 years, 2 months ago.

Viewing 1 post (of 1 total)
  • Author
  • #30659


    I’m having trouble with depth textures on Linux using PowerVR SGX 540. I use them as FBO depth attachments in my program to implement algorithms for OIT, but I noticed that on the SGX the depth values are not written properly into the texture (even glClear didn’t show a change). I built a small test program that loads a depth texture with some constant values and renders the texture onto a full-screen quad into the red-component. On SGX, the framebuffer stays completely black. I tried this in PVRFrame, where it displays correctly. It also works on Mesa GLES2 with software rasterization.

    I uploaded the test program here.

    Anything I’m doing wrong here?

    Thanks in advance!

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