diff options
author | Emil Velikov <[email protected]> | 2017-09-07 17:03:50 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-09-19 19:07:16 +0100 |
commit | b94344f1c70484d4ee59bb8765021a81fd54b366 (patch) | |
tree | 816cdafb874c1c9eafcc30f2dae86fbaa61bf54a /src/egl/main/eglapi.c | |
parent | 5af26734793c76a2faab96c5c2c1dc6517ce6cab (diff) |
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 <[email protected]>
Cc: Adam Jackson <[email protected]>
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]> (IRC)
Diffstat (limited to 'src/egl/main/eglapi.c')
-rw-r--r-- | src/egl/main/eglapi.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; } |