Alexander Dorofeyev : wined3d: Activate context for the right target in surface_blt_to_drawable.

Alexandre Julliard julliard at winehq.org
Mon May 12 07:12:24 CDT 2008


Module: wine
Branch: master
Commit: a25651138a4cfd78fb5837e20127fabebdb0743f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a25651138a4cfd78fb5837e20127fabebdb0743f

Author: Alexander Dorofeyev <alexd4 at inbox.lv>
Date:   Mon May 12 01:44:06 2008 +0300

wined3d: Activate context for the right target in surface_blt_to_drawable.

---

 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 d40ad06..7a1a355 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -3878,7 +3878,7 @@ static inline void surface_blt_to_drawable(IWineD3DSurfaceImpl *This, const RECT
         rect.bottom = This->currentDesc.Height;
     }
 
-    ActivateContext(device, device->render_targets[0], CTXUSAGE_BLIT);
+    ActivateContext(device, (IWineD3DSurface*)This, CTXUSAGE_BLIT);
     ENTER_GL();
 
     if(This->glDescription.target == GL_TEXTURE_RECTANGLE_ARB) {




More information about the wine-cvs mailing list