From ecf9f6a13e3b26277d5245d1bb357396fc0a3cfb Mon Sep 17 00:00:00 2001 From: Brandon Schaefer Date: Wed, 26 Jul 2017 18:10:45 -0700 Subject: [PATCH] [mir] Point to SDL_EGL_UnloadLibrary vs doing it our selfs --- src/video/mir/SDL_miropengl.c | 6 ------ src/video/mir/SDL_miropengl.h | 1 + 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/video/mir/SDL_miropengl.c b/src/video/mir/SDL_miropengl.c index c81630807..ff9442776 100644 --- a/src/video/mir/SDL_miropengl.c +++ b/src/video/mir/SDL_miropengl.c @@ -73,12 +73,6 @@ MIR_GL_LoadLibrary(_THIS, const char* path) return 0; } -void -MIR_GL_UnloadLibrary(_THIS) -{ - SDL_EGL_UnloadLibrary(_this); -} - void* MIR_GL_GetProcAddress(_THIS, const char* proc) { diff --git a/src/video/mir/SDL_miropengl.h b/src/video/mir/SDL_miropengl.h index e32cd0a8b..511cbdea7 100644 --- a/src/video/mir/SDL_miropengl.h +++ b/src/video/mir/SDL_miropengl.h @@ -33,6 +33,7 @@ #define MIR_GL_DeleteContext SDL_EGL_DeleteContext #define MIR_GL_GetSwapInterval SDL_EGL_GetSwapInterval #define MIR_GL_SetSwapInterval SDL_EGL_SetSwapInterval +#define MIR_GL_UnloadLibrary SDL_EGL_UnloadLibrary extern int MIR_GL_SwapWindow(_THIS, SDL_Window* window);