gl_drm: Fix silly run time warning for wayland dmabuf
authorDerek Foreman <derekf@osg.samsung.com>
Fri, 20 May 2016 20:23:19 +0000 (15:23 -0500)
committerDerek Foreman <derekf@osg.samsung.com>
Fri, 20 May 2016 20:47:21 +0000 (15:47 -0500)
commitf8976aed13432f13c7c7c871eac027c177814345
treea09d3bebd1a71128ea9992cc24f3b51345498144
parentba063275275f586ea8ec336c036142acfdd77826
gl_drm: Fix silly run time warning for wayland dmabuf

DMABuf buffers destroy their glimage in the unbind callback, so it's
usually already gone for the free callback.

Now we test if we actually need to destroy anything.

Also, switch to GLERRV macro for error reporting - it saves us the heavy
eglGetError() unless we've built it in intentionally.
src/modules/evas/engines/gl_drm/evas_engine.c