From 51902b89fbc5e4fa0cc29a61925fa6b8a5801402 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Thu, 18 Jun 2009 09:04:06 +0200 Subject: [PATCH] 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 file changed, 1 deletion(-) diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index d398fb145aa..c6eaa69168f 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 */ -- 2.11.4.GIT