comparison render_sdl.c @ 2387:ff2f18dac84b

Fix issue that broke debug views when toggling fullscreen
author Michael Pavone <pavone@retrodev.com>
date Wed, 22 Nov 2023 22:59:57 -0800
parents 1c09f5be285b
children a8c069d847a0
comparison
equal deleted inserted replaced
2386:9f178feb3cb0 2387:ff2f18dac84b
903 break; 903 break;
904 } 904 }
905 need_ui_fb_resize = 1; 905 need_ui_fb_resize = 1;
906 #ifndef DISABLE_OPENGL 906 #ifndef DISABLE_OPENGL
907 if (render_gl) { 907 if (render_gl) {
908 SDL_GL_MakeCurrent(main_window, main_context);
908 if (on_context_destroyed) { 909 if (on_context_destroyed) {
909 on_context_destroyed(); 910 on_context_destroyed();
910 } 911 }
911 gl_teardown(); 912 gl_teardown();
912 SDL_GL_DeleteContext(main_context); 913 SDL_GL_DeleteContext(main_context);