Make things a little more explicit in the depth write toggling
This commit is contained in:
parent
63aa2ec47c
commit
ed05c5feb8
4
gl-api.c
4
gl-api.c
|
@ -210,7 +210,7 @@ void APIENTRY glDepthFunc(GLenum func) {
|
|||
}
|
||||
|
||||
void APIENTRY glDepthMask(GLboolean flag) {
|
||||
GL_KOS_DEPTH_WRITE = !flag;
|
||||
GL_KOS_DEPTH_WRITE = (flag == GL_TRUE) ? PVR_DEPTHWRITE_ENABLE : PVR_DEPTHWRITE_DISABLE;
|
||||
}
|
||||
|
||||
//====================================================================================================//
|
||||
|
@ -937,7 +937,7 @@ GLuint _glKosDepthFunc() {
|
|||
}
|
||||
|
||||
GLubyte _glKosDepthMask() {
|
||||
return !GL_KOS_DEPTH_WRITE;
|
||||
return (GL_KOS_DEPTH_WRITE == PVR_DEPTHWRITE_ENABLE) ? GL_TRUE : GL_FALSE;
|
||||
}
|
||||
|
||||
GLuint _glKosVertexColor() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user