From: jk7744.park Date: Wed, 24 Feb 2016 09:27:39 +0000 (+0900) Subject: Tizen 2.4.0 rev3 SDK Public Release X-Git-Url: http://review.tizen.org/git/?p=framework%2Fgraphics%2Fcoregl.git;a=commitdiff_plain;h=refs%2Fheads%2Ftizen_2.4 Tizen 2.4.0 rev3 SDK Public Release --- diff --git a/src/coregl_export_egl.c b/src/coregl_export_egl.c index f0e5244..da04740 100644 --- a/src/coregl_export_egl.c +++ b/src/coregl_export_egl.c @@ -8,10 +8,8 @@ Mutex init_export_mutex = MUTEX_INITIALIZER; mutex_lock(&init_export_mutex); \ if (export_initialized == 0) \ { \ - if (coregl_initialize() != 0) \ - { \ - export_initialized = 1; \ - } \ + coregl_initialize(); \ + export_initialized = 1; \ } \ mutex_unlock(&init_export_mutex); \ } @@ -20,30 +18,21 @@ EGLint coregl_api_eglGetError(void) { INIT_EXPORT(); - if (!export_initialized) - return EGL_NOT_INITIALIZED; - else - return ovr_eglGetError(); + return ovr_eglGetError(); } EGLDisplay coregl_api_eglGetDisplay(EGLNativeDisplayType display_id) { INIT_EXPORT(); - if (!export_initialized) - return NULL; - else - return ovr_eglGetDisplay(display_id); + return ovr_eglGetDisplay(display_id); } EGLBoolean coregl_api_eglInitialize(EGLDisplay dpy, EGLint* major, EGLint* minor) { INIT_EXPORT(); - if (!export_initialized) - return EGL_FALSE; - else - return ovr_eglInitialize(dpy, major, minor); + return ovr_eglInitialize(dpy, major, minor); } EGLBoolean