From e5b88aa4c0815a8a92aedab43bcca83501389c6d Mon Sep 17 00:00:00 2001 From: badlogic Date: Thu, 11 Jul 2019 15:05:29 +0200 Subject: [PATCH] [cocos2dx] Temporarily enable culling by default. --- spine-cocos2dx/src/spine/SkeletonRenderer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-cocos2dx/src/spine/SkeletonRenderer.cpp b/spine-cocos2dx/src/spine/SkeletonRenderer.cpp index 9396fc1bd..9fe7cbeb4 100644 --- a/spine-cocos2dx/src/spine/SkeletonRenderer.cpp +++ b/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);