mirror of https://github.com/axmolengine/axmol.git
Fix compiler warning C4804 under Visual Studio
This commit is contained in:
parent
5aa83ef1cf
commit
d2c46167c3
|
@ -774,7 +774,7 @@ void Sprite3D::draw(Renderer *renderer, const Mat4 &transform, uint32_t flags)
|
|||
const auto lights = scene->getLights();
|
||||
bool usingLight = false;
|
||||
for (const auto light : lights) {
|
||||
usingLight = (light->isEnabled() && (unsigned int)light->getLightFlag() & _lightMask) > 0;
|
||||
usingLight = light->isEnabled() && ((static_cast<unsigned int>(light->getLightFlag()) & _lightMask) > 0);
|
||||
if (usingLight)
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue