Hi,

as suggested I send this patch for a discussion. This is a workaround for this bug http://bugs.winehq.org/show_bug.cgi?id=11584 .

I don't know if this patch is the right way to fix the problem.

Could someone with more knowledge have a look at this?

Cheers
Rico
>From dd3877745308bde528a09ed7bdc5ca6082e5011c Mon Sep 17 00:00:00 2001
From: =?utf-8?q?Rico=20Sch=C3=BCller?= <[EMAIL PROTECTED]>
Date: Thu, 21 Feb 2008 18:44:51 +0100
Subject: [PATCH] wined3d: ActivateContext: try to fix wrong parameter?

---
 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



Reply via email to