From 690f496bd404438318b725100e2d65ffdfd0aa96 Mon Sep 17 00:00:00 2001 From: Roderick Colenbrander Date: Sat, 22 Mar 2008 21:23:58 +0000 Subject: [PATCH] wined3d: We want to compare the old and the new format and not the old with the old. --- dlls/wined3d/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c index 52b1099d74..9a5ed78f70 100644 --- a/dlls/wined3d/context.c +++ b/dlls/wined3d/context.c @@ -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)); -- 2.33.8