mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 00:39:53 +00:00
Call dylib_free at end of WGL context destroy function
This commit is contained in:
parent
d27252daed
commit
708596ba84
@ -144,7 +144,6 @@ static void create_gl_context(HWND hwnd, bool *quit)
|
||||
struct retro_hw_render_callback *hwr = video_driver_get_hw_context();
|
||||
bool debug = hwr->debug_context;
|
||||
bool core_context = (win32_major * 1000 + win32_minor) >= 3001;
|
||||
dll_handle = dylib_load("OpenGL32.dll");
|
||||
win32_hdc = GetDC(hwnd);
|
||||
|
||||
setup_pixel_format(win32_hdc);
|
||||
@ -456,6 +455,8 @@ static void *gfx_ctx_wgl_init(video_frame_info_t *video_info, void *video_driver
|
||||
|
||||
if (g_inited)
|
||||
return NULL;
|
||||
|
||||
dll_handle = dylib_load("OpenGL32.dll");
|
||||
|
||||
win32_window_reset();
|
||||
win32_monitor_init();
|
||||
@ -539,6 +540,8 @@ static void gfx_ctx_wgl_destroy(void *data)
|
||||
g_restore_desktop = false;
|
||||
}
|
||||
|
||||
dylib_free(dll_handle);
|
||||
|
||||
win32_core_hw_context_enable = false;
|
||||
g_inited = false;
|
||||
win32_major = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user