{
if (evas_gl_thread_enabled(EVAS_GL_THREAD_TYPE_GL))
{
+#ifndef BUILD_ENGINE_GL_COCOA
// Now surface direct override is ON.
// It means that EvasGL DIRECT rendering is enabled strictly
// and Evas GL THREAD rendering needs disabled from now,
ERR("Evas GL thread fallback is failed");
evas_gl_thread_disabled();
+#endif /* ! BUILD_ENGINE_GL_COCOA */
}
}
#ifdef GL_GLES
THREAD_FUNCTION_ASSIGN(evas_gl_thread_egl_func_get);
#else
+ #ifndef BUILD_ENGINE_GL_COCOA
THREAD_FUNCTION_ASSIGN(evas_gl_thread_glx_func_get);
-#endif
+ #endif /* ! BUILD_ENGINE_GL_COCOA */
+#endif /* GL_GLES */
THREAD_FUNCTION_ASSIGN(evas_gl_thread_gl_func_get);
else
ERR("Thread functions (EGL) are not exist");
#else
+ #ifndef BUILD_ENGINE_GL_COCOA
if (th_func->evas_gl_thread_glx_func_get)
_glx_thread_link_init(th_func->evas_gl_thread_glx_func_get());
else
ERR("Thread functions (GLX) are not exist");
-#endif
+ #endif /* ! BUILD_ENGINE_GL_COCOA */
+#endif /* GL_GLES */
if (th_func->evas_gl_thread_gl_func_get)
_gl_thread_link_init(th_func->evas_gl_thread_gl_func_get());
#ifndef GL_GLES
+#ifndef BUILD_ENGINE_GL_COCOA
+
#define EVAS_TH_GLX_FN(ret, name, ...) \
ret (*GL_TH_FN(name))(GL_TH_DP, ##__VA_ARGS__);
#define EVAS_TH_GLX_FN_ASYNC(ret, name, ...) \
#endif /* EVAS_GL_RENDER_THREAD_COMPILE_FOR_GL_GENERIC */
+#endif /* ! BUILD_ENGINE_GL_COCOA */
+
#endif /* ! GL_GLES */
#ifndef GL_GLES
+#ifndef BUILD_ENGINE_GL_COCOA
+
#include <GL/glx.h>
extern void *evas_gl_thread_glx_func_get(void);
#endif /* EVAS_GL_RENDER_THREAD_COMPILE_FOR_GL_GENERIC */
+#endif /* ! BUILD_ENGINE_GL_COCOA */
+
#endif /* ! GL_GLES */
#endif /* EVAS_GL_THREAD_GLX_H */