fix mirrored Effect3DOutline

This commit is contained in:
songchengjiang 2015-07-10 16:30:45 +08:00
parent a1dd466588
commit 21a8a8d567
1 changed files with 1 additions and 1 deletions

View File

@ -1033,7 +1033,7 @@ void Effect3DOutline::draw(const Mat4 &transform)
if(_sprite && _sprite->getMesh())
{
GLenum cullFace = GL_FRONT;
if (_sprite->getScaleX() < 0.0f || _sprite->getScaleY() < 0.0f || _sprite->getScaleZ() < 0.0f)
if ((_sprite->getScaleX() * _sprite->getScaleY() * _sprite->getScaleZ()) < 0.0f)
cullFace = GL_BACK;
glEnable(GL_CULL_FACE);
glCullFace(cullFace);