Fix return value of eglBindTexImage()
authorHaegeun Park <haegeun.park@samsung.com>
Thu, 3 May 2012 06:39:09 +0000 (23:39 -0700)
committerHaegeun Park <haegeun.park@samsung.com>
Thu, 3 May 2012 06:39:09 +0000 (23:39 -0700)
src/coregl_wrappath_egl.c
src/headers/sym_egl.h

index e00b570..4101e32 100644 (file)
@@ -258,15 +258,18 @@ finish:
        return ret;
 }
 
-void
+EGLBoolean
 eglBindTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer)
 {
+       EGLBoolean ret = EGL_FALSE;
+
        _COREGL_WRAP_FUNC_BEGIN();
-       ovr_eglBindTexImage(dpy, surface, buffer);
+       ret = ovr_eglBindTexImage(dpy, surface, buffer);
        goto finish;
 
 finish:
        _COREGL_WRAP_FUNC_END();
+       return ret;
 }
 
 EGLBoolean
index d31a675..21bdeec 100644 (file)
@@ -29,7 +29,7 @@ _COREGL_SYMBOL(GL_FALSE, EGLBoolean, eglReleaseThread, (void))
 _COREGL_SYMBOL(GL_FALSE, EGLSurface, eglCreatePbufferFromClientBuffer, (EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint *attrib_list))
 
 _COREGL_SYMBOL(GL_FALSE, EGLBoolean, eglSurfaceAttrib, (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value))
-_COREGL_SYMBOL(GL_FALSE, void, eglBindTexImage, (EGLDisplay dpy, EGLSurface surface, EGLint buffer))
+_COREGL_SYMBOL(GL_FALSE, EGLBoolean, eglBindTexImage, (EGLDisplay dpy, EGLSurface surface, EGLint buffer))
 _COREGL_SYMBOL(GL_FALSE, EGLBoolean, eglReleaseTexImage, (EGLDisplay dpy, EGLSurface surface, EGLint buffer))
 _COREGL_SYMBOL(GL_FALSE, EGLBoolean, eglSwapInterval, (EGLDisplay dpy, EGLint interval))
 _COREGL_SYMBOL(GL_FALSE, EGLContext, eglCreateContext, (EGLDisplay dpy, EGLConfig config, EGLContext share_context, const EGLint* attrib_list))