mirror of
https://github.com/reactos/wine.git
synced 2025-01-19 10:13:01 +00:00
wined3d: Do not mark texture stages above MAX_TEXTURES dirty.
This commit is contained in:
parent
1e65d4743c
commit
bc90458244
@ -4593,7 +4593,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetTexture(IWineD3DDevice *iface, DWORD
|
||||
ULONG bindCount = InterlockedIncrement(&new->baseTexture.bindCount);
|
||||
|
||||
IWineD3DBaseTexture_AddRef(This->updateStateBlock->textures[Stage]);
|
||||
if(oldTexture == NULL) {
|
||||
if(oldTexture == NULL && Stage < MAX_TEXTURES) {
|
||||
/* The source arguments for color and alpha ops have different meanings when a NULL texture is bound,
|
||||
* so the COLOROP and ALPHAOP have to be dirtified.
|
||||
*/
|
||||
@ -4612,7 +4612,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetTexture(IWineD3DDevice *iface, DWORD
|
||||
LONG bindCount = InterlockedDecrement(&old->baseTexture.bindCount);
|
||||
|
||||
IWineD3DBaseTexture_Release(oldTexture);
|
||||
if(pTexture == NULL) {
|
||||
if(pTexture == NULL && Stage < MAX_TEXTURES) {
|
||||
IWineD3DDeviceImpl_MarkStateDirty(This, STATE_TEXTURESTAGE(Stage, WINED3DTSS_COLOROP));
|
||||
IWineD3DDeviceImpl_MarkStateDirty(This, STATE_TEXTURESTAGE(Stage, WINED3DTSS_ALPHAOP));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user