summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2016-05-20 15:24:28 -0500
committerDerek Foreman <derekf@osg.samsung.com>2016-05-20 15:53:20 -0500
commitd93db5bcaa357972c870ca99bbeb25b8467df1f7 (patch)
tree1a67f35780122b5a7b3c94e36f83238a876b5f91
parentf8976aed13432f13c7c7c871eac027c177814345 (diff)
gl_drm: switch to GLERRV macro for error reporting
eglGetError() is actually somewhat heavy, so hide it behind the GLERRV macro which compiles out the test by default.
-rw-r--r--src/modules/evas/engines/gl_drm/evas_engine.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/evas/engines/gl_drm/evas_engine.c b/src/modules/evas/engines/gl_drm/evas_engine.c
index 5fcfc897c6..d8d4312aee 100644
--- a/src/modules/evas/engines/gl_drm/evas_engine.c
+++ b/src/modules/evas/engines/gl_drm/evas_engine.c
@@ -766,8 +766,7 @@ _native_cb_free(void *image)
766 if (glsym_eglDestroyImage) 766 if (glsym_eglDestroyImage)
767 { 767 {
768 glsym_eglDestroyImage(img->native.disp, n->ns_data.wl_surface.surface); 768 glsym_eglDestroyImage(img->native.disp, n->ns_data.wl_surface.surface);
769 if (eglGetError() != EGL_SUCCESS) 769 GLERRV("eglDestroyImage() failed.");
770 ERR("eglDestroyImage() failed.");
771 } 770 }
772 else 771 else
773 ERR("Try eglDestroyImage on EGL with no support"); 772 ERR("Try eglDestroyImage on EGL with no support");