1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-04 02:41:19 +00:00

Make assignment in while loop condition obviously intentional

This commit is contained in:
AnyOldName3 2021-02-24 17:45:44 +00:00
parent 9be258d260
commit 153ab57ae3

View File

@ -185,7 +185,7 @@ void ShadowsBin::sortImplementation()
root = root->_parent;
const osg::StateSet* ss = root->getStateSet();
if (ss->getMode(GL_NORMALIZE) & osg::StateAttribute::ON // that is root stategraph of renderingmanager cpp
|| ss->getAttribute(osg::StateAttribute::VIEWPORT)) // fallback to rendertargets sg just in case
|| ss->getAttribute(osg::StateAttribute::VIEWPORT)) // fallback to rendertarget's sg just in case
break;
if (!root->_parent)
return;
@ -194,7 +194,7 @@ void ShadowsBin::sortImplementation()
// noTestRoot is now a stategraph with useDiffuseMapForShadowAlpha disabled but minimal other state
bool cullFaceOverridden = false;
while (root = root->_parent)
while ((root = root->_parent))
{
if (!root->getStateSet())
continue;