summaryrefslogtreecommitdiffstats
path: root/src/egl/main
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2017-09-07 17:03:52 +0100
committerEmil Velikov <[email protected]>2017-09-19 19:07:12 +0100
commit5af26734793c76a2faab96c5c2c1dc6517ce6cab (patch)
tree3e884d029aa08a5f602eb24ef0c561a0e47d7ec9 /src/egl/main
parent191402c0afc8fb15b47931b0461efd885c8dd4e0 (diff)
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 <[email protected]> Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/egl/main')
-rw-r--r--src/egl/main/eglcurrent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/egl/main/eglcurrent.c b/src/egl/main/eglcurrent.c
index 26f42761e26..df0463d70e5 100644
--- a/src/egl/main/eglcurrent.c
+++ b/src/egl/main/eglcurrent.c
@@ -287,7 +287,7 @@ _eglError(EGLint errCode, const char *msg)
type = EGL_DEBUG_MSG_ERROR_KHR;
}
- _eglDebugReport(errCode, msg, type, NULL);
+ _eglDebugReport(errCode, NULL, type, msg);
} else
_eglInternalError(errCode, msg);