[PATCH 5/5] wined3d: Remove a redundant ActivateContext() call in IWineD3DSurfaceImpl_UnlockRect().

Henri Verbeet hverbeet at codeweavers.com
Thu Jun 18 02:04:06 CDT 2009


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 b98e74c..3cce564 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -1546,7 +1546,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 */
 
-- 
1.6.0.6




More information about the wine-patches mailing list