Tizen_GLES_MakeCurrent doesn't have to be implemented.
I believe that the function was copied from Wayland_GLES_MakeCurrent.
The Wayland's function has been implemented before SDL supports surfaceless_context.
It doesn't still support surfaceless_context.
To support it, the Tizen port can just use SDL_EGL_MakeCurrent_impl.
Change-Id: I7c289afc0f3dd8b1bb525833601185b58b0fc8cb
return ret;
}
-int
-Tizen_GLES_MakeCurrent(_THIS, SDL_Window *window, SDL_GLContext context)
-{
- int ret;
+SDL_EGL_MakeCurrent_impl(Tizen)
- if (window && context) {
- ret = SDL_EGL_MakeCurrent(_this, ((SDL_WindowData *) window->driverdata)->egl_surface, context);
- }
- else if(!window && context) {
- ret = SDL_EGL_MakeCurrent(_this, NULL, context);
- }
- else {
- ret = SDL_EGL_MakeCurrent(_this, NULL, NULL);
- }
-
- return ret;
-}
void
Tizen_GLES_DeleteContext(_THIS, SDL_GLContext context)