From 3a3064987622e3d94558e62759542ae3785190fd Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 8 Jan 2016 05:13:10 +0100 Subject: [PATCH] Pass through data variable to win32_window_create correctly --- gfx/common/win32_common.cpp | 2 +- gfx/drivers_context/wgl_ctx.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gfx/common/win32_common.cpp b/gfx/common/win32_common.cpp index 3737d18aaf..719f51a4e6 100644 --- a/gfx/common/win32_common.cpp +++ b/gfx/common/win32_common.cpp @@ -526,7 +526,7 @@ bool win32_set_video_mode(void *data, g_resize_height = height = rect.bottom - rect.top; } - if (!win32_window_create(NULL, style, &mon_rect, width, height, fullscreen)) + if (!win32_window_create(data, style, &mon_rect, width, height, fullscreen)) return false; if (!fullscreen || windowed_full) diff --git a/gfx/drivers_context/wgl_ctx.cpp b/gfx/drivers_context/wgl_ctx.cpp index 41c7c93790..8828c834fa 100644 --- a/gfx/drivers_context/wgl_ctx.cpp +++ b/gfx/drivers_context/wgl_ctx.cpp @@ -363,7 +363,7 @@ static bool gfx_ctx_wgl_set_video_mode(void *data, unsigned width, unsigned height, bool fullscreen) { - if (!win32_set_video_mode(data, width, height, fullscreen)) + if (!win32_set_video_mode(NULL, width, height, fullscreen)) goto error; p_swap_interval = (BOOL (APIENTRY *)(int))wglGetProcAddress("wglSwapIntervalEXT");