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)
downloadefl-d93db5bcaa357972c870ca99bbeb25b8467df1f7.tar.gz
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)
if (glsym_eglDestroyImage)
{
glsym_eglDestroyImage(img->native.disp, n->ns_data.wl_surface.surface);
- if (eglGetError() != EGL_SUCCESS)
- ERR("eglDestroyImage() failed.");
+ GLERRV("eglDestroyImage() failed.");
}
else
ERR("Try eglDestroyImage on EGL with no support");