Commit e6e89dbc authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Avoid surface_from_resource() in swapchain_gdi_present().

parent 6b8fb1c2
......@@ -700,8 +700,8 @@ static void swapchain_gdi_present(struct wined3d_swapchain *swapchain,
{
struct wined3d_surface *front, *back;
front = surface_from_resource(wined3d_texture_get_sub_resource(swapchain->front_buffer, 0));
back = surface_from_resource(wined3d_texture_get_sub_resource(swapchain->back_buffers[0], 0));
front = swapchain->front_buffer->sub_resources[0].u.surface;
back = swapchain->back_buffers[0]->sub_resources[0].u.surface;
/* Flip the DC. */
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment