Tizen 2.4.0 rev3 SDK Public Release tizen_2.4
authorjk7744.park <jk7744.park@samsung.com>
Wed, 24 Feb 2016 09:27:39 +0000 (18:27 +0900)
committerjk7744.park <jk7744.park@samsung.com>
Wed, 24 Feb 2016 09:27:39 +0000 (18:27 +0900)
src/coregl_export_egl.c

index f0e5244..da04740 100644 (file)
@@ -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