fix opengl win32 build

This commit is contained in:
Ryan Fleury
2025-05-10 08:36:13 -07:00
parent a1318e6117
commit ab5c47a0fd
2 changed files with 2 additions and 2 deletions
@@ -79,7 +79,7 @@ r_ogl_os_init(CmdLine *cmdln)
r_ogl_lnx_ctx = glXCreateContextAttribsARB(os_lnx_gfx_state->display, framebuffer_config, 0, 1, context_options); r_ogl_lnx_ctx = glXCreateContextAttribsARB(os_lnx_gfx_state->display, framebuffer_config, 0, 1, context_options);
} }
glXMakeCurrent(os_lnx_gfx_state->display, None, r_ogl_lnx_ctx); glXMakeCurrent(os_lnx_gfx_state->display, RootWindow(os_lnx_gfx_state->display, visual_info->screen), r_ogl_lnx_ctx);
} }
internal R_Handle internal R_Handle
@@ -78,7 +78,7 @@ r_ogl_os_init(CmdLine *cmdline)
HGLRC real_ctx = 0; HGLRC real_ctx = 0;
if(pf) if(pf)
{ {
B32 debug_mode = cmd_line_has_flag(cmdln, str8_lit("opengl_debug")); B32 debug_mode = cmd_line_has_flag(cmdline, str8_lit("opengl_debug"));
#if BUILD_DEBUG #if BUILD_DEBUG
debug_mode = 1; debug_mode = 1;
#endif #endif