Module: wine Branch: master Commit: 690f496bd404438318b725100e2d65ffdfd0aa96 URL: http://source.winehq.org/git/wine.git/?a=commit;h=690f496bd404438318b725100e...
Author: Roderick Colenbrander thunderbird2k@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));