[PATCH] wined3d: ActivateContext: try to fix wrong parameter?

Rico Schüller kgbricola at web.de
Thu Feb 21 11:44:51 CST 2008


---
 dlls/wined3d/surface.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 6a17949..fe460cd 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -835,7 +835,7 @@ static void read_from_framebuffer_texture(IWineD3DSurfaceImpl *This)
      * should help here. Furthermore unlockrect will need the context set up for blitting. The context manager will find
      * context->last_was_blit set on the unlock.
      */
-    ActivateContext(device, (IWineD3DSurface *) This, CTXUSAGE_BLIT);
+    ActivateContext(device, device->lastActiveRenderTarget, CTXUSAGE_BLIT); 
     surface_bind_and_dirtify(This);
     ENTER_GL();
 
-- 
1.5.3.3


--------------030407030109010102070207--



More information about the wine-devel mailing list