Sun Gang
November 23rd, 2005, 10:53 PM
In my OpenGL application, I used GL_GREATER option for depth test. When I was processing texture mapping, I turned off the depth test by invoking glDisable(GL_DEPTH_TEST). After finishing texture mapping, I reopened depth test. Now the problem came, the inner texture could be seen outside the object, and the back texture was covered in front of the front one if the front one was mapped earlier than the back one. How can I solve this problem but not to change the GL_GREATER option for the depth test?