mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-06 13:58:40 +00:00
fix opengl win32 build
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user