fix bug: same model in mirror state cullFace problem.

This commit is contained in:
lvlong 2014-12-11 14:24:26 +08:00
parent 82241a74dd
commit d0ce99413d
1 changed files with 5 additions and 5 deletions

View File

@ -164,13 +164,13 @@ void MeshCommand::applyRenderState()
if (_cullFaceEnabled && !s_cullFaceEnabled)
{
glEnable(GL_CULL_FACE);
if (s_cullFace != _cullFace)
{
glCullFace(_cullFace);
s_cullFace = _cullFace;
}
s_cullFaceEnabled = true;
}
if (s_cullFace != _cullFace)
{
glCullFace(_cullFace);
s_cullFace = _cullFace;
}
if (_depthTestEnabled && !s_depthTestEnabled)
{
glEnable(GL_DEPTH_TEST);