From d05b490c3601d67e4382655d0997cf55d596f210 Mon Sep 17 00:00:00 2001 From: "huiyu.eun" Date: Wed, 18 Jan 2017 15:24:52 +0900 Subject: [PATCH] [SDL_Tizen] Modify MakeCurrent If have not window and have context, pass context. Change-Id: I1f988cef81504b895992d9cdb33376ba710f1eb8 Signed-off-by: huiyu.eun --- src/video/tizen/SDL_tizenopengles.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/video/tizen/SDL_tizenopengles.c b/src/video/tizen/SDL_tizenopengles.c index de29f13..2390555 100755 --- a/src/video/tizen/SDL_tizenopengles.c +++ b/src/video/tizen/SDL_tizenopengles.c @@ -98,7 +98,11 @@ Tizen_GLES_MakeCurrent(_THIS, SDL_Window *window, SDL_GLContext context) if (window && context) { ret = SDL_EGL_MakeCurrent(_this, ((SDL_WindowData *) window->driverdata)->egl_surface, context); - } else { + } + else if(!window && context) { + ret = SDL_EGL_MakeCurrent(_this, NULL, context); + } + else { ret = SDL_EGL_MakeCurrent(_this, NULL, NULL); } -- 2.7.4