mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-20 06:06:13 +00:00
Fixed: Valgrind warnings
This commit is contained in:
parent
1c66d545fe
commit
0971a773c7
1 changed files with 1 additions and 2 deletions
|
@ -69,7 +69,6 @@ CRenderTrav::CRenderTrav()
|
||||||
_CurrentPassOpaque = true;
|
_CurrentPassOpaque = true;
|
||||||
|
|
||||||
_CacheLightContribution= NULL;
|
_CacheLightContribution= NULL;
|
||||||
_LastLocalAttenuation= false;
|
|
||||||
|
|
||||||
// Default light Setup.
|
// Default light Setup.
|
||||||
LightingSystemEnabled= false;
|
LightingSystemEnabled= false;
|
||||||
|
@ -624,7 +623,7 @@ void CRenderTrav::changeLightSetup(CLightContribution *lightContribution, bool
|
||||||
uint i;
|
uint i;
|
||||||
|
|
||||||
// if same lightContribution, no-op.
|
// if same lightContribution, no-op.
|
||||||
if(_CacheLightContribution == lightContribution && _LastLocalAttenuation == useLocalAttenuation)
|
if (_CacheLightContribution == lightContribution && (lightContribution == NULL || _LastLocalAttenuation == useLocalAttenuation))
|
||||||
return;
|
return;
|
||||||
// else, must setup the lights into driver.
|
// else, must setup the lights into driver.
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue