wined3d: We want to compare the old and the new format and not the old with the old.

This commit is contained in:
Roderick Colenbrander 2008-03-22 21:23:58 +00:00 committed by Alexandre Julliard
parent 57384b7a1c
commit 690f496bd4
1 changed files with 1 additions and 1 deletions

View File

@ -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));