I finally figured out what was causing all those strange clipping
problems in my OpenGL apps!
The depth buffer wasn't being cleared, just like everyone suspected.
I was calling glDepthMask(false) for drawing blended polygons, and then
calling glClear(GL_DEPTH_BUFFER_BIT) at the beginning of the next frame
didn't do anything, because the depth buffer was read-only.
The solution was to put glDepthMask(true) right before the glClear
call. Now everything works!
FINALLY
Asher Dunn
--------------------------------------------------------
President and Head Developer of Fireye Software
<http://www.fireyesoftware.com/>
Make PDFs from your RB app
<http://www.fireyesoftware.com/code/pdfclasses/>
AIM and Yahoo: fireye7517
REALbasic 5.5.3 Mac OS X 10.3.5
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|