mirror of https://github.com/axmolengine/axmol.git
fix bug: same model in mirror state cullFace problem.
This commit is contained in:
parent
82241a74dd
commit
d0ce99413d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue