coregl_fastpath: Create image with native surface 80/91480/1
authorZhaowei Yuan <zhaowei.yuan@samsung.com>
Fri, 7 Oct 2016 20:55:42 +0000 (04:55 +0800)
committerZhaowei Yuan <zhaowei.yuan@samsung.com>
Fri, 7 Oct 2016 21:18:58 +0000 (05:18 +0800)
Native surface which is neither texture nor renderbuffer
is possible passed to fastpath_eglCreateImageKHR() to
create image

Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
Change-Id: I62aadeb21b7f89157d9a213b70d0e71ac9ff2e82

src/modules/fastpath/coregl_fastpath_egl.c

index 1e573c5..0155564 100644 (file)
@@ -1386,7 +1386,8 @@ fastpath_eglCreateImageKHR (EGLDisplay dpy, EGLContext ctx, EGLenum target,
        else if ((EGLint)buffer & GL_OBJECT_TYPE_RENDERBUFFER)
                type = GL_OBJECT_TYPE_RENDERBUFFER;
        else {
-               COREGL_ERR("\E[40;31;1m fastpath_eglCreateImageKHR buffer type error \E[0m\n");
+               ret = _orig_fastpath_eglCreateImageKHR(dpy, real_ctx, target, buffer,
+                                                                                          attrib_list);
                goto finish;
        }