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); \
}
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