Henri Verbeet : wined3d: Remove a redundant ActivateContext() call in IWineD3DSurfaceImpl_UnlockRect().
Alexandre Julliard
julliard at winehq.org
Thu Jun 18 09:11:34 CDT 2009
Module: wine
Branch: master
Commit: 51902b89fbc5e4fa0cc29a61925fa6b8a5801402
URL: http://source.winehq.org/git/wine.git/?a=commit;h=51902b89fbc5e4fa0cc29a61925fa6b8a5801402
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Thu Jun 18 09:04:06 2009 +0200
wined3d: Remove a redundant ActivateContext() call in IWineD3DSurfaceImpl_UnlockRect().
The various LoadLocation() handlers already take care of activating an
appropriate context.
---
dlls/wined3d/surface.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index d398fb1..c6eaa69 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -1548,7 +1548,6 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_UnlockRect(IWineD3DSurface *iface) {
switch(wined3d_settings.rendertargetlock_mode) {
case RTL_READTEX:
case RTL_TEXTEX:
- ActivateContext(myDevice, iface, CTXUSAGE_BLIT);
IWineD3DSurface_LoadLocation(iface, SFLAG_INTEXTURE, NULL /* partial texture loading not supported yet */);
/* drop through */
More information about the wine-cvs
mailing list