Module: wine Branch: master Commit: 34d43fcbdde56f5198e188088ad63fde99838c62 URL: http://source.winehq.org/git/wine.git/?a=commit;h=34d43fcbdde56f5198e188088a...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Sun Mar 26 20:56:00 2017 +0200
wined3d: Get rid of the redundant context_acquire() call in swapchain_blit().
Signed-off-by: Henri Verbeet hverbeet@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/wined3d/swapchain.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/dlls/wined3d/swapchain.c b/dlls/wined3d/swapchain.c index 37f0a27..a9eb997 100644 --- a/dlls/wined3d/swapchain.c +++ b/dlls/wined3d/swapchain.c @@ -367,18 +367,13 @@ static void swapchain_blit(const struct wined3d_swapchain *swapchain, else { struct wined3d_device *device = swapchain->device; - struct wined3d_context *context2;
if (is_complex_fixup(texture->resource.format->color_fixup)) filter = WINED3D_TEXF_NONE;
- context2 = context_acquire(device, texture, 0); - - device->blitter->blit_surface(device, WINED3D_BLIT_OP_COLOR_BLIT, context2, back_buffer, + device->blitter->blit_surface(device, WINED3D_BLIT_OP_COLOR_BLIT, context, back_buffer, src_rect, back_buffer, WINED3D_LOCATION_DRAWABLE, dst_rect, NULL, filter); checkGLcall("Swapchain present blit(manual)\n"); - - context_release(context2); } }