Module: wine Branch: master Commit: 35826e9761b8b9c90e6f64b24d8e0d33261f57ce URL: http://source.winehq.org/git/wine.git/?a=commit;h=35826e9761b8b9c90e6f64b24d...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Fri Aug 7 08:51:22 2009 +0200
wined3d: Fix a condition in record_lights().
---
dlls/wined3d/stateblock.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/stateblock.c b/dlls/wined3d/stateblock.c index a8e53f0..abdb333 100644 --- a/dlls/wined3d/stateblock.c +++ b/dlls/wined3d/stateblock.c @@ -357,7 +357,7 @@ static inline void record_lights(IWineD3DStateBlockImpl *This, IWineD3DStateBloc LIST_FOR_EACH(e, &This->lightMap[i]) { BOOL updated = FALSE; 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 */ LIST_FOR_EACH(f, &targetStateBlock->lightMap[i]) {