mirror of https://github.com/axmolengine/axmol.git
remove unused variable
This commit is contained in:
parent
90523fc3d5
commit
e2f1b91117
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue