summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDongyeon Kim <dy5.kim@samsung.com>2015-11-12 10:03:10 +0900
committerDongyeon Kim <dy5.kim@samsung.com>2015-11-12 10:03:10 +0900
commit16eb3942bb1f81fc56e4314f0a09b6b00b7aa0d7 (patch)
tree47e0f3261fde6a3adc71d1e176be7f251a61d0a2
parent74e556febc1324a2b36531a1478481e44c594298 (diff)
evas/gl: Do not check for egl errors with glEGLImageTargetTexture2DOES
Summary: glEGLImageTargetTexture2DOES is a GL extension API, so we need to use glGetError instead of eglGetError!
-rw-r--r--src/modules/evas/engines/gl_drm/evas_engine.c3
-rw-r--r--src/modules/evas/engines/gl_x11/evas_engine.c3
-rw-r--r--src/modules/evas/engines/wayland_egl/evas_engine.c3
3 files changed, 3 insertions, 6 deletions
diff --git a/src/modules/evas/engines/gl_drm/evas_engine.c b/src/modules/evas/engines/gl_drm/evas_engine.c
index 145c5df569..908dd2312c 100644
--- a/src/modules/evas/engines/gl_drm/evas_engine.c
+++ b/src/modules/evas/engines/gl_drm/evas_engine.c
@@ -632,8 +632,7 @@ _native_cb_bind(void *data EINA_UNUSED, void *image)
632 if (glsym_glEGLImageTargetTexture2DOES) 632 if (glsym_glEGLImageTargetTexture2DOES)
633 { 633 {
634 glsym_glEGLImageTargetTexture2DOES(GL_TEXTURE_2D, n->egl_surface); 634 glsym_glEGLImageTargetTexture2DOES(GL_TEXTURE_2D, n->egl_surface);
635 if (eglGetError() != EGL_SUCCESS) 635 GLERRV("glsym_glEGLImageTargetTexture2DOES");
636 ERR("glEGLImageTargetTexture2DOES() failed.");
637 } 636 }
638 else 637 else
639 ERR("Try glEGLImageTargetTexture2DOES on EGL with no support"); 638 ERR("Try glEGLImageTargetTexture2DOES on EGL with no support");
diff --git a/src/modules/evas/engines/gl_x11/evas_engine.c b/src/modules/evas/engines/gl_x11/evas_engine.c
index c601a0d73e..ffb5a32b4f 100644
--- a/src/modules/evas/engines/gl_x11/evas_engine.c
+++ b/src/modules/evas/engines/gl_x11/evas_engine.c
@@ -2110,8 +2110,7 @@ _native_bind_cb(void *data EINA_UNUSED, void *image)
2110 if (glsym_glEGLImageTargetTexture2DOES) 2110 if (glsym_glEGLImageTargetTexture2DOES)
2111 { 2111 {
2112 glsym_glEGLImageTargetTexture2DOES(GL_TEXTURE_2D, n->egl_surface); 2112 glsym_glEGLImageTargetTexture2DOES(GL_TEXTURE_2D, n->egl_surface);
2113 if (eglGetError() != EGL_SUCCESS) 2113 GLERRV("glsym_glEGLImageTargetTexture2DOES");
2114 ERR("glEGLImageTargetTexture2DOES() failed.");
2115 } 2114 }
2116 else 2115 else
2117 ERR("Try glEGLImageTargetTexture2DOES on EGL with no support"); 2116 ERR("Try glEGLImageTargetTexture2DOES on EGL with no support");
diff --git a/src/modules/evas/engines/wayland_egl/evas_engine.c b/src/modules/evas/engines/wayland_egl/evas_engine.c
index 3b44b074d1..9c199db5fa 100644
--- a/src/modules/evas/engines/wayland_egl/evas_engine.c
+++ b/src/modules/evas/engines/wayland_egl/evas_engine.c
@@ -810,8 +810,7 @@ _native_cb_bind(void *data EINA_UNUSED, void *image)
810 if (glsym_glEGLImageTargetTexture2DOES) 810 if (glsym_glEGLImageTargetTexture2DOES)
811 { 811 {
812 glsym_glEGLImageTargetTexture2DOES(GL_TEXTURE_2D, n->egl_surface); 812 glsym_glEGLImageTargetTexture2DOES(GL_TEXTURE_2D, n->egl_surface);
813 if (eglGetError() != EGL_SUCCESS) 813 GLERRV("glsym_glEGLImageTargetTexture2DOES");
814 ERR("glEGLImageTargetTexture2DOES() failed.");
815 } 814 }
816 else 815 else
817 ERR("Try glEGLImageTargetTexture2DOES on EGL with no support"); 816 ERR("Try glEGLImageTargetTexture2DOES on EGL with no support");