Module: wine Branch: master Commit: c5fbf98ed2035571a911749ba5c1497d790b39f8 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c5fbf98ed2035571a911749ba5... Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Fri Oct 3 08:55:41 2008 +0200 wined3d: Enable lights on the correct swapchain. --- dlls/wined3d/device.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 409c7a1..2e13613 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -2996,7 +2996,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetLightEnable(IWineD3DDevice *iface, D IWineD3DDeviceImpl_MarkStateDirty(This, STATE_ACTIVELIGHT(lightInfo->glIndex)); } - This->stateBlock->activeLights[lightInfo->glIndex] = NULL; + This->updateStateBlock->activeLights[lightInfo->glIndex] = NULL; lightInfo->glIndex = -1; } else { TRACE("Light already disabled, nothing to do\n"); @@ -3011,8 +3011,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetLightEnable(IWineD3DDevice *iface, D int i; /* Find a free gl light */ for(i = 0; i < This->maxConcurrentLights; i++) { - if(This->stateBlock->activeLights[i] == NULL) { - This->stateBlock->activeLights[i] = lightInfo; + if(This->updateStateBlock->activeLights[i] == NULL) { + This->updateStateBlock->activeLights[i] = lightInfo; lightInfo->glIndex = i; break; }