From df5357cda0f2ac5e98a742dc656543194b400c36 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Fri, 2 Aug 2019 03:32:09 +0430 Subject: [PATCH] wined3d: Pass a wined3d_context_gl structure to swapchain_gl_set_swap_interval(). Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- dlls/wined3d/swapchain.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/wined3d/swapchain.c b/dlls/wined3d/swapchain.c index 37b0a78e386..7d73dd1eee5 100644 --- a/dlls/wined3d/swapchain.c +++ b/dlls/wined3d/swapchain.c @@ -367,9 +367,9 @@ static void swapchain_blit(const 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; if (swapchain->swap_interval == swap_interval) @@ -383,7 +383,7 @@ static void swapchain_gl_set_swap_interval(struct wined3d_swapchain *swapchain, if (!GL_EXTCALL(wglSwapIntervalEXT(swap_interval))) { 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, 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)) {