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.
This commit is contained in:
Derek Foreman 2016-05-20 15:24:28 -05:00
parent f8976aed13
commit d93db5bcaa
1 changed files with 1 additions and 2 deletions

View File

@ -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");