comparison render_sdl.c @ 2493:b62336ceb626

Kinda hacky fix to make sure Nuklear has the right GL context
author Michael Pavone <pavone@retrodev.com>
date Wed, 17 Apr 2024 22:18:45 -0700
parents 88210caedc53
children
comparison
equal deleted inserted replaced
2492:88210caedc53 2493:b62336ceb626
1400 } 1400 }
1401 } 1401 }
1402 1402
1403 SDL_Window *render_get_window(void) 1403 SDL_Window *render_get_window(void)
1404 { 1404 {
1405 #ifndef DISABLE_OPENGL
1406 if (render_gl) {
1407 SDL_GL_MakeCurrent(main_window, main_context);
1408 }
1409 #endif
1405 return main_window; 1410 return main_window;
1406 } 1411 }
1407 1412
1408 uint32_t render_audio_syncs_per_sec(void) 1413 uint32_t render_audio_syncs_per_sec(void)
1409 { 1414 {