From 09fa27cd09164653811eeadaaf000b87f9574da4 Mon Sep 17 00:00:00 2001 From: "Miguel A. Vico" Date: Wed, 1 Feb 2017 18:07:12 -0800 Subject: [PATCH] egl: Add stream-related error descriptions This change adds descriptions for the following errors to get_egl_error_str(): - EGL_BAD_STREAM_KHR - EGL_BAD_STATE_KHR - EGL_BAD_DEVICE_EXT - EGL_BAD_OUTPUT_LAYER_EXT https://bugzilla.gnome.org/show_bug.cgi?id=779112 --- src/backends/meta-egl.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/backends/meta-egl.c b/src/backends/meta-egl.c index ca687c6c8..92613db64 100644 --- a/src/backends/meta-egl.c +++ b/src/backends/meta-egl.c @@ -122,6 +122,17 @@ get_egl_error_str (EGLint error_number) case EGL_CONTEXT_LOST: return "A power management event has occurred. The application must destroy all contexts and reinitialise OpenGL ES state and objects to continue rendering. "; break; + case EGL_BAD_STREAM_KHR: + return "An EGLStreamKHR argument does not name a valid EGL stream."; + break; + case EGL_BAD_STATE_KHR: + return "An EGLStreamKHR argument is not in a valid state"; + break; + case EGL_BAD_DEVICE_EXT: + return "An EGLDeviceEXT argument does not name a valid EGL device."; + break; + case EGL_BAD_OUTPUT_LAYER_EXT: + return "An EGLOutputLayerEXT argument does not name a valid EGL output layer."; default: return "Unknown error"; break;