From e2f1b91117e891e32f634bc94bb6ddd19022d889 Mon Sep 17 00:00:00 2001 From: yangxiao Date: Thu, 25 Sep 2014 22:25:43 +0800 Subject: [PATCH] remove unused variable --- cocos/3d/CCSprite3D.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/cocos/3d/CCSprite3D.cpp b/cocos/3d/CCSprite3D.cpp index 53b6aa2ec4..458e512f11 100644 --- a/cocos/3d/CCSprite3D.cpp +++ b/cocos/3d/CCSprite3D.cpp @@ -526,7 +526,6 @@ void Sprite3D::draw(Renderer *renderer, const Mat4 &transform, uint32_t flags) //check light and determine the shader used const auto& lights = Director::getInstance()->getRunningScene()->getLights(); bool usingLight = false; - Color4F ambient(0.f, 0.f, 0.f, 1.f); for (const auto light : lights) { usingLight = ((unsigned short)light->getLightFlag() & _lightMask) > 0; if (usingLight)