mirror of https://github.com/axmolengine/axmol.git
fix opengl 502 by using glGetBooleanv
This commit is contained in:
parent
1ac5811bd8
commit
19bb6a0c68
|
@ -318,7 +318,10 @@ void Grid3D::beforeBlit()
|
|||
if(_needDepthTestForBlit)
|
||||
{
|
||||
_oldDepthTestValue = glIsEnabled(GL_DEPTH_TEST);
|
||||
_oldDepthWriteValue = glIsEnabled(GL_DEPTH_WRITEMASK);
|
||||
GLboolean depthWriteMask;
|
||||
glGetBooleanv(GL_DEPTH_WRITEMASK, &depthWriteMask);
|
||||
_oldDepthWriteValue = depthWriteMask;
|
||||
CHECK_GL_ERROR_DEBUG();
|
||||
glEnable(GL_DEPTH_TEST);
|
||||
glDepthMask(true);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue