egl: Print the actual message to the console from _eglError().
authorEric Anholt <eric@anholt.net>
Fri, 16 Nov 2018 01:31:28 +0000 (17:31 -0800)
committerEric Anholt <eric@anholt.net>
Sat, 17 Nov 2018 01:49:31 +0000 (17:49 -0800)
commit7e9fc11ff8ee47ad25d96f618f5d1a1c26590083
tree24c363d309addae2e54881024d050e7ed81025df
parentd971a4230d54069c996bca78b6ed6a6a23377821
egl: Print the actual message to the console from _eglError().

Previously we would print errors on the console like:

   libEGL debug: EGL user error 0x3001 (EGL_NOT_INITIALIZED) in eglInitialize

When we had everything we needed for:

   libEGL debug: EGL user error 0x3001 (EGL_NOT_INITIALIZED) in eglInitialize: DRI2: failed to find EGLDevice

(for a gbm error in my case)

Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/egl/main/eglcurrent.c