diff --git a/gfx/context/glx_ctx.c b/gfx/context/glx_ctx.c index 99f0fcd9a4..a4d08652e1 100644 --- a/gfx/context/glx_ctx.c +++ b/gfx/context/glx_ctx.c @@ -379,8 +379,8 @@ static bool gfx_ctx_set_video_mode( if (g_core) { const int attribs[] = { - GLX_CONTEXT_MAJOR_VERSION_ARB, g_major, - GLX_CONTEXT_MINOR_VERSION_ARB, g_minor, + GLX_CONTEXT_MAJOR_VERSION_ARB, (int)g_major, + GLX_CONTEXT_MINOR_VERSION_ARB, (int)g_minor, GLX_CONTEXT_PROFILE_MASK_ARB, GLX_CONTEXT_CORE_PROFILE_BIT_ARB, GLX_CONTEXT_FLAGS_ARB, g_extern.system.hw_render_callback.debug_context ? GLX_CONTEXT_DEBUG_BIT_ARB : 0, None, diff --git a/gfx/context/wgl_ctx.c b/gfx/context/wgl_ctx.c index fd5865508f..cb8caf6ad3 100644 --- a/gfx/context/wgl_ctx.c +++ b/gfx/context/wgl_ctx.c @@ -125,8 +125,8 @@ static void create_gl_context(HWND hwnd) #define WGL_CONTEXT_DEBUG_BIT_ARB 0x0001 #endif const int attribs[] = { - WGL_CONTEXT_MAJOR_VERSION_ARB, g_major, - WGL_CONTEXT_MINOR_VERSION_ARB, g_minor, + WGL_CONTEXT_MAJOR_VERSION_ARB, (int)g_major, + WGL_CONTEXT_MINOR_VERSION_ARB, (int)g_minor, WGL_CONTEXT_PROFILE_MASK_ARB, WGL_CONTEXT_CORE_PROFILE_BIT_ARB, WGL_CONTEXT_FLAGS_ARB, g_extern.system.hw_render_callback.debug_context ? WGL_CONTEXT_DEBUG_BIT_ARB : 0, 0,