wined3d: We want to compare the old and the new format and not the old with the old.
authorRoderick Colenbrander <thunderbird2k@gmx.net>
Sat, 22 Mar 2008 21:23:58 +0000 (21:23 +0000)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 24 Mar 2008 12:27:14 +0000 (13:27 +0100)
dlls/wined3d/context.c

index 52b1099d74626a8bdfee7a2ca7aa219c742fa67b..9a5ed78f702ade62b1ce9cc05a9637e3e710b999 100644 (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));