Hello, I'm trying to implement the early depth pass that is often mentioned but it is not working as described. *update* I'd like to use the shadow pass for both but I have now just realized after posting that the depth is being written to an FBO and this seems likely to be the issue. *UPDATE_2* I disabled the FBO and the results are the same, nothing is rendered. Everything works fine until I get to the part where the depth configuration code is set for the color writes. The following is how I'm initializing the depth texture, it is pretty much verbatim from the PowerVR SDK and works for Windows, iOS, and also through the WINE emulator.
The glDepthMask() and glDepthFunc() both cause the screen to go blank. Any thoughts on this? Help on this matter would be much appreciated. Also, how should the glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); line be setup. Should GL_DEPTH_BUFFER_BIT be included since we are trying to use the information already stored instead of clearing it?