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

Alexandre Julliard julliard at winehq.org
Mon Mar 24 07:55:15 CDT 2008


Module: wine
Branch: master
Commit: 690f496bd404438318b725100e2d65ffdfd0aa96
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=690f496bd404438318b725100e2d65ffdfd0aa96

Author: Roderick Colenbrander <thunderbird2k at gmx.net>
Date:   Sat Mar 22 21:23:58 2008 +0000

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

---

 dlls/wined3d/context.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index 52b1099..9a5ed78 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));




More information about the wine-cvs mailing list