wined3d: Activate context for the right target in surface_blt_to_drawable.

This commit is contained in:
Alexander Dorofeyev 2008-05-12 01:44:06 +03:00 committed by Alexandre Julliard
parent e1c60caa42
commit a25651138a
1 changed files with 1 additions and 1 deletions

View File

@ -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) {