Clear GL depth buffer before drawing a frame in Polymost. This should fix the issue with skies in the Duke64 TC.

git-svn-id: https://svn.eduke32.com/eduke32@4063 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2013-09-14 17:59:01 +00:00
parent 37265689cf
commit b16c929170

View file

@ -3193,8 +3193,10 @@ void polymost_drawrooms()
#ifdef YAX_ENABLE
if (numyaxbunches==0)
#endif
if (editstatus)
bglClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);
if (editstatus)
bglClear(GL_COLOR_BUFFER_BIT);
bglClear(GL_DEPTH_BUFFER_BIT);
bglDisable(GL_BLEND);
bglEnable(GL_TEXTURE_2D);