wined3d: Do not mark texture stages > MAX_TEXTURES dirty, they don't exist.
This commit is contained in:
parent
440ca84680
commit
6d0e14d947
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue