mirror of
https://github.com/aap/librw.git
synced 2024-11-25 21:25:42 +00:00
gl zbuffer silliness
This commit is contained in:
parent
09b0b36e7d
commit
bae891fdd9
@ -173,7 +173,6 @@ setDepthTest(bool32 enable)
|
|||||||
glDisable(GL_DEPTH_TEST);
|
glDisable(GL_DEPTH_TEST);
|
||||||
glDepthFunc(GL_LEQUAL);
|
glDepthFunc(GL_LEQUAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -719,7 +718,9 @@ clearCamera(Camera *cam, RGBA *col, uint32 mode)
|
|||||||
mask |= GL_COLOR_BUFFER_BIT;
|
mask |= GL_COLOR_BUFFER_BIT;
|
||||||
if(mode & Camera::CLEARZ)
|
if(mode & Camera::CLEARZ)
|
||||||
mask |= GL_DEPTH_BUFFER_BIT;
|
mask |= GL_DEPTH_BUFFER_BIT;
|
||||||
|
glDepthMask(GL_TRUE);
|
||||||
glClear(mask);
|
glClear(mask);
|
||||||
|
glDepthMask(rwStateCache.zwrite);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user