aboutsummaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorScott Anderson <scott@anderso.nz>2019-09-15 18:52:36 +1200
committerSimon Ser <contact@emersion.fr>2019-09-15 10:06:34 +0300
commit06644575da9060a917849d177c418ed39e432467 (patch)
treeb89cd2dec098cc940cb57727ec923cb4ed35f736 /render
parenta14d65086480652520d20622cbc92df2319158f0 (diff)
render/egl: Change KHR_debug log to include error code
Diffstat (limited to 'render')
-rw-r--r--render/egl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/render/egl.c b/render/egl.c
index 22859b16..4261dab8 100644
--- a/render/egl.c
+++ b/render/egl.c
@@ -54,7 +54,9 @@ static enum wlr_log_importance egl_log_importance_to_wlr(EGLint type) {
static void egl_log(EGLenum error, const char *command, EGLint msg_type,
EGLLabelKHR thread, EGLLabelKHR obj, const char *msg) {
- _wlr_log(egl_log_importance_to_wlr(msg_type), "[EGL] %s: %s", command, msg);
+ _wlr_log(egl_log_importance_to_wlr(msg_type),
+ "[EGL] command: %s, error: 0x%x, message: \"%s\"",
+ command, error, msg);
}
static bool check_egl_ext(const char *exts, const char *ext) {