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");