From b94344f1c70484d4ee59bb8765021a81fd54b366 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Thu, 7 Sep 2017 17:03:50 +0100 Subject: egl: simplify _eglDebugReport* API Instead of having three, almost identical but not quite, _eglDebugReport* functions, simply fold them into one. While doing so drop the unnecessary arguments 'command' and 'objectLabel'. Former is identical to funcName, while the latter is already stored (yet unused) in _EGLThreadInfo::CurrentObjectLabel. Cc: Kyle Brenneman Cc: Adam Jackson Signed-off-by: Emil Velikov Reviewed-by: Eric Engestrom (IRC) --- src/egl/main/eglapi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/egl/main/eglapi.c') diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index e3f10fcbe24..9a59d9e0c35 100644 --- a/src/egl/main/eglapi.c +++ b/src/egl/main/eglapi.c @@ -274,8 +274,7 @@ _eglSetFuncName(const char *funcName, _EGLDisplay *disp, EGLenum objectType, _EG return EGL_TRUE; } - _eglDebugReportFull(EGL_BAD_ALLOC, funcName, funcName, - EGL_DEBUG_MSG_CRITICAL_KHR, NULL, NULL); + _eglDebugReport(EGL_BAD_ALLOC, funcName, EGL_DEBUG_MSG_CRITICAL_KHR, NULL); return EGL_FALSE; } -- cgit v1.2.3