Commit 6d0e14d9 authored by H. Verbeet's avatar H. Verbeet Committed by Alexandre Julliard

wined3d: Do not mark texture stages > MAX_TEXTURES dirty, they don't exist.

parent 440ca846
......@@ -3234,7 +3234,9 @@ void IWineD3DDeviceImpl_FindTexUnitMap(IWineD3DDeviceImpl *This) {
if(This->texUnitMap[i] != i) {
This->texUnitMap[i] = i;
IWineD3DDeviceImpl_MarkStateDirty(This, STATE_SAMPLER(i));
markTextureStagesDirty(This, i);
if (i < MAX_TEXTURES) {
markTextureStagesDirty(This, i);
}
}
}
This->oneToOneTexUnitMap = TRUE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment