From a25651138a4cfd78fb5837e20127fabebdb0743f Mon Sep 17 00:00:00 2001 From: Alexander Dorofeyev Date: Mon, 12 May 2008 01:44:06 +0300 Subject: [PATCH] wined3d: Activate context for the right target in surface_blt_to_drawable. --- dlls/wined3d/surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index d40ad0631a1..7a1a35560d3 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) { -- 2.11.4.GIT