If current GLES API version is 1.x, fastpath_eglCreateImageKHR
should call eglCreateImageKHR directly without any fast path
handling
Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
Change-Id: I21a7a24e444c156dff30931e9a888a787beafad8
{
void *ret = NULL;
EGLContext real_ctx = EGL_NO_CONTEXT;
- EGLClientBuffer real_obj;
+ EGLClientBuffer real_obj = NULL;
GL_Object_Type type = 0;
+ if (current_gl_api_version == COREGL_GLAPI_1) {
+ ret = _orig_fastpath_eglCreateImageKHR(dpy, real_ctx, target, real_obj,
+ attrib_list);
+ goto finish;
+ }
+
if ((EGLint)buffer & GL_OBJECT_TYPE_TEXTURE)
type = GL_OBJECT_TYPE_TEXTURE;
else if ((EGLint)buffer & GL_OBJECT_TYPE_RENDERBUFFER)