Module: wine Branch: master Commit: 51902b89fbc5e4fa0cc29a61925fa6b8a5801402 URL: http://source.winehq.org/git/wine.git/?a=commit;h=51902b89fbc5e4fa0cc29a6192...
Author: Henri Verbeet hverbeet@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 */