wined3d: Fix a condition in record_lights().
This commit is contained in:
parent
41729ca919
commit
35826e9761
|
@ -357,7 +357,7 @@ static inline void record_lights(IWineD3DStateBlockImpl *This, IWineD3DStateBloc
|
||||||
LIST_FOR_EACH(e, &This->lightMap[i]) {
|
LIST_FOR_EACH(e, &This->lightMap[i]) {
|
||||||
BOOL updated = FALSE;
|
BOOL updated = FALSE;
|
||||||
PLIGHTINFOEL *src = LIST_ENTRY(e, PLIGHTINFOEL, entry), *realLight;
|
PLIGHTINFOEL *src = LIST_ENTRY(e, PLIGHTINFOEL, entry), *realLight;
|
||||||
if(!src->changed || !src->enabledChanged) continue;
|
if (!src->changed && !src->enabledChanged) continue;
|
||||||
|
|
||||||
/* Look up the light in the destination */
|
/* Look up the light in the destination */
|
||||||
LIST_FOR_EACH(f, &targetStateBlock->lightMap[i]) {
|
LIST_FOR_EACH(f, &targetStateBlock->lightMap[i]) {
|
||||||
|
|
Loading…
Reference in New Issue