Browse Source

[cocos2dx] Temporarily enable culling by default.

badlogic 6 years ago
parent
commit
e5b88aa4c0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      spine-cocos2dx/src/spine/SkeletonRenderer.cpp

+ 1 - 1
spine-cocos2dx/src/spine/SkeletonRenderer.cpp

@@ -274,7 +274,7 @@ namespace spine {
 		const cocos2d::Rect brect = computeBoundingRect(worldCoords, coordCount / 2);
 		_boundingRect = brect;
 
-		const bool autoCullingEnable = cocos2d::Director::getInstance()->isAutoCullingEnable();
+		const bool autoCullingEnable = true;
 		if (autoCullingEnable && camera && cullRectangle(transform, brect, *camera))
 		{
 			VLA_FREE(worldCoords);