From 35826e9761b8b9c90e6f64b24d8e0d33261f57ce Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Fri, 7 Aug 2009 08:51:22 +0200 Subject: [PATCH] wined3d: Fix a condition in record_lights(). --- dlls/wined3d/stateblock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wined3d/stateblock.c b/dlls/wined3d/stateblock.c index a8e53f09fc0..abdb3335481 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]) {