diff --git a/dlls/wined3d/stateblock.c b/dlls/wined3d/stateblock.c index b6cb92195d2..200e06e157d 100644 --- a/dlls/wined3d/stateblock.c +++ b/dlls/wined3d/stateblock.c @@ -330,7 +330,7 @@ should really perform a delta so that only the changes get updated*/ /* FIXME: Only apply applicable states not all states */ - if (/*TODO: 'magic' statetype, replace with BOOL This->blockType == D3DSBT_RECORDED || */This->blockType == D3DSBT_ALL || This->blockType == D3DSBT_VERTEXSTATE) { + if (/*TODO: 'magic' statetype, replace with BOOL This->blockType == D3DSBT_RECORDED || */This->blockType == WINED3DSBT_INIT || This->blockType == D3DSBT_ALL || This->blockType == D3DSBT_VERTEXSTATE) { PLIGHTINFOEL *toDo = This->lights;