diff --git a/cocos/3d/CCMesh.cpp b/cocos/3d/CCMesh.cpp index d8ea82cf06..0d16710899 100644 --- a/cocos/3d/CCMesh.cpp +++ b/cocos/3d/CCMesh.cpp @@ -350,9 +350,9 @@ void Mesh::draw(Renderer* renderer, float globalZOrder, const Mat4& transform, u flags); - if (isTransparent && !forceDepthWrite) - _material->getStateBlock()->setDepthWrite(false); - else +// if (isTransparent && !forceDepthWrite) +// _material->getStateBlock()->setDepthWrite(false); +// else _material->getStateBlock()->setDepthWrite(true);