[mir] Same no need to wrap this, which is already being done
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
diff --git a/src/video/mir/SDL_miropengl.c b/src/video/mir/SDL_miropengl.c
index ff94427..1f10f63 100644
--- a/src/video/mir/SDL_miropengl.c
+++ b/src/video/mir/SDL_miropengl.c
@@ -73,18 +73,6 @@ MIR_GL_LoadLibrary(_THIS, const char* path)
return 0;
}
-void*
-MIR_GL_GetProcAddress(_THIS, const char* proc)
-{
- void* proc_addr = SDL_EGL_GetProcAddress(_this, proc);
-
- if (!proc_addr) {
- SDL_SetError("Failed to find proc address!");
- }
-
- return proc_addr;
-}
-
#endif /* SDL_VIDEO_DRIVER_MIR */
/* vi: set ts=4 sw=4 expandtab: */
diff --git a/src/video/mir/SDL_miropengl.h b/src/video/mir/SDL_miropengl.h
index 511cbde..6fd5cb4 100644
--- a/src/video/mir/SDL_miropengl.h
+++ b/src/video/mir/SDL_miropengl.h
@@ -34,6 +34,7 @@
#define MIR_GL_GetSwapInterval SDL_EGL_GetSwapInterval
#define MIR_GL_SetSwapInterval SDL_EGL_SetSwapInterval
#define MIR_GL_UnloadLibrary SDL_EGL_UnloadLibrary
+#define MIR_GL_GetProcAddress SDL_EGL_GetProcAddress
extern int
MIR_GL_SwapWindow(_THIS, SDL_Window* window);
@@ -50,9 +51,6 @@ MIR_GL_LoadLibrary(_THIS, const char* path);
extern void
MIR_GL_UnloadLibrary(_THIS);
-extern void*
-MIR_GL_GetProcAddress(_THIS, const char* proc);
-
#endif /* _SDL_miropengl_h */
/* vi: set ts=4 sw=4 expandtab: */