[PATCH] We want to compare the old and the new format and not the old with the old.

Roderick Colenbrander thunderbird2k at gmx.net
Sat Mar 22 16:23:58 CDT 2008


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


--========GMX41521206227032219948--



More information about the wine-patches mailing list