diff --git a/cocos/renderer/CCMeshCommand.cpp b/cocos/renderer/CCMeshCommand.cpp index 666a9d3691..10ca5d6c4a 100644 --- a/cocos/renderer/CCMeshCommand.cpp +++ b/cocos/renderer/CCMeshCommand.cpp @@ -192,7 +192,7 @@ MeshCommand::~MeshCommand() void MeshCommand::applyRenderState() { - _renderStateCullFace = glIsEnabled(GL_CULL_FACE) != GL_FALSE; + _renderStateCullFaceEnabled = glIsEnabled(GL_CULL_FACE) != GL_FALSE; _renderStateDepthTest = glIsEnabled(GL_DEPTH_TEST) != GL_FALSE; glGetBooleanv(GL_DEPTH_WRITEMASK, &_renderStateDepthWrite); GLint cullface;