Module: wine Branch: master Commit: e50ff748080fe6381c27013f42efdd1dc9c511a6 URL: http://source.winehq.org/git/wine.git/?a=commit;h=e50ff748080fe6381c27013f42...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Thu Mar 31 22:48:53 2016 +0200
wined3d: Avoid surface_from_resource() in swapchain_gdi_frontbuffer_updated().
Signed-off-by: Henri Verbeet hverbeet@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/wined3d/swapchain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/wined3d/swapchain.c b/dlls/wined3d/swapchain.c index 84717d1..ba8f66c 100644 --- a/dlls/wined3d/swapchain.c +++ b/dlls/wined3d/swapchain.c @@ -659,7 +659,7 @@ static void swapchain_gdi_frontbuffer_updated(struct wined3d_swapchain *swapchai
TRACE("swapchain %p.\n", swapchain);
- front = surface_from_resource(wined3d_texture_get_sub_resource(swapchain->front_buffer, 0)); + front = swapchain->front_buffer->sub_resources[0].u.surface; if (swapchain->palette) wined3d_palette_apply_to_dc(swapchain->palette, front->hDC);