Skip to content

Commit

Permalink
[mir] Same no need to wrap this, which is already being done
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonSchaefer committed Jul 27, 2017
1 parent ecf9f6a commit b0b481d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
12 changes: 0 additions & 12 deletions src/video/mir/SDL_miropengl.c
Expand Up @@ -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: */
4 changes: 1 addition & 3 deletions src/video/mir/SDL_miropengl.h
Expand Up @@ -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);
Expand All @@ -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: */
Expand Down

0 comments on commit b0b481d

Please sign in to comment.