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

wined3d: Pass a wined3d_context_gl structure to swapchain_gl_set_swap_interval().

parent e246d922
...@@ -367,9 +367,9 @@ static void swapchain_blit(const struct wined3d_swapchain *swapchain, ...@@ -367,9 +367,9 @@ static void swapchain_blit(const struct wined3d_swapchain *swapchain,
} }
static void swapchain_gl_set_swap_interval(struct wined3d_swapchain *swapchain, static void swapchain_gl_set_swap_interval(struct wined3d_swapchain *swapchain,
struct wined3d_context *context, unsigned int swap_interval) struct wined3d_context_gl *context_gl, unsigned int swap_interval)
{ {
const struct wined3d_gl_info *gl_info = context->gl_info; const struct wined3d_gl_info *gl_info = context_gl->c.gl_info;
swap_interval = swap_interval <= 4 ? swap_interval : 1; swap_interval = swap_interval <= 4 ? swap_interval : 1;
if (swapchain->swap_interval == swap_interval) if (swapchain->swap_interval == swap_interval)
...@@ -383,7 +383,7 @@ static void swapchain_gl_set_swap_interval(struct wined3d_swapchain *swapchain, ...@@ -383,7 +383,7 @@ static void swapchain_gl_set_swap_interval(struct wined3d_swapchain *swapchain,
if (!GL_EXTCALL(wglSwapIntervalEXT(swap_interval))) if (!GL_EXTCALL(wglSwapIntervalEXT(swap_interval)))
{ {
ERR("Failed to set swap interval %u for context %p, last error %#x.\n", ERR("Failed to set swap interval %u for context %p, last error %#x.\n",
swap_interval, context, GetLastError()); swap_interval, context_gl, GetLastError());
} }
} }
...@@ -458,7 +458,7 @@ static void swapchain_gl_present(struct wined3d_swapchain *swapchain, ...@@ -458,7 +458,7 @@ static void swapchain_gl_present(struct wined3d_swapchain *swapchain,
gl_info = context->gl_info; gl_info = context->gl_info;
swapchain_gl_set_swap_interval(swapchain, context, swap_interval); swapchain_gl_set_swap_interval(swapchain, context_gl, swap_interval);
if ((logo_texture = swapchain->device->logo_texture)) if ((logo_texture = swapchain->device->logo_texture))
{ {
......
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