wined3d: We want to compare the old and the new format and not the old with the old.
This commit is contained in:
parent
57384b7a1c
commit
690f496bd4
|
@ -715,7 +715,7 @@ static inline WineD3DContext *FindContext(IWineD3DDeviceImpl *This, IWineD3DSurf
|
|||
*/
|
||||
if(oldFmt != newFmt) {
|
||||
const StaticPixelFormatDesc *old = getFormatDescEntry(oldFmt, NULL, NULL);
|
||||
const StaticPixelFormatDesc *new = getFormatDescEntry(oldFmt, NULL, NULL);
|
||||
const StaticPixelFormatDesc *new = getFormatDescEntry(newFmt, NULL, NULL);
|
||||
|
||||
if((old->alphaMask && !new->alphaMask) || (!old->alphaMask && new->alphaMask)) {
|
||||
Context_MarkStateDirty(context, STATE_RENDER(WINED3DRS_ALPHABLENDENABLE));
|
||||
|
|
Loading…
Reference in New Issue