mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-06 00:55:50 +00:00
Make assignment in while loop condition obviously intentional
This commit is contained in:
parent
9be258d260
commit
153ab57ae3
@ -185,7 +185,7 @@ void ShadowsBin::sortImplementation()
|
|||||||
root = root->_parent;
|
root = root->_parent;
|
||||||
const osg::StateSet* ss = root->getStateSet();
|
const osg::StateSet* ss = root->getStateSet();
|
||||||
if (ss->getMode(GL_NORMALIZE) & osg::StateAttribute::ON // that is root stategraph of renderingmanager cpp
|
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;
|
break;
|
||||||
if (!root->_parent)
|
if (!root->_parent)
|
||||||
return;
|
return;
|
||||||
@ -194,7 +194,7 @@ void ShadowsBin::sortImplementation()
|
|||||||
// noTestRoot is now a stategraph with useDiffuseMapForShadowAlpha disabled but minimal other state
|
// noTestRoot is now a stategraph with useDiffuseMapForShadowAlpha disabled but minimal other state
|
||||||
|
|
||||||
bool cullFaceOverridden = false;
|
bool cullFaceOverridden = false;
|
||||||
while (root = root->_parent)
|
while ((root = root->_parent))
|
||||||
{
|
{
|
||||||
if (!root->getStateSet())
|
if (!root->getStateSet())
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user