forked from enlightenment/efl
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:
parent
f8976aed13
commit
d93db5bcaa
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue