/* Makes the given context the current one for drawing operations.  */
int glMakeCurrent(_THIS, SDL_Window *window, SDL_GLContext context)
/* Makes the given context the current one for drawing operations.  */
int glMakeCurrent(_THIS, SDL_Window *window, SDL_GLContext context)
{
    window_impl_t   *impl;
    EGLSurface      surface = NULL;
    if (window) {
        impl = (window_impl_t *)window->driverdata;
        surface = impl->surface;
    }
    if (eglMakeCurrent(egl_disp, surface, surface, context) != EGL_TRUE) {
        return -1;
    }
    return 0;
}