It seems as if rendering to the texture (FBO color attachment) works fine, but when I render a fullscreen quad with this texture, it looks like depth testing is disabled, what the hell, am I missing something?
Obviously, when I don’t render to the texture, depth testing is fine.