egl: use _eglError's 'msg' as an actual message in EGL_KHR_debug
authorEmil Velikov <emil.velikov@collabora.com>
Thu, 7 Sep 2017 16:03:52 +0000 (17:03 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 19 Sep 2017 18:07:12 +0000 (19:07 +0100)
commit5af26734793c76a2faab96c5c2c1dc6517ce6cab
tree3e884d029aa08a5f602eb24ef0c561a0e47d7ec9
parent191402c0afc8fb15b47931b0461efd885c8dd4e0
egl: use _eglError's 'msg' as an actual message in EGL_KHR_debug

Seemingly, the original intent behind _eglError's 'msg' was aimed to
provide a function name.

At some point, people started using it the way EGL_KHR_debug's
callback() message is meant to be used. Aka providing meaningful
information to the developer/user.

Swap the funcName/msg argument order in the _eglDebugReport() call.
The 'funcName' variable is implicitly set, props to the
_eglSetFuncName() call at the start of each public entrypoint.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/egl/main/eglcurrent.c