Mesa (master): egl: add missing case in _eglError()

Brian Paul brianp at kemper.freedesktop.org
Fri Dec 31 16:14:38 UTC 2010


Module: Mesa
Branch: master
Commit: e227f4bf50ff534718fa43f6d8e20735bd0d81c0
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e227f4bf50ff534718fa43f6d8e20735bd0d81c0

Author: Brian Paul <brianp at vmware.com>
Date:   Fri Dec 31 09:14:19 2010 -0700

egl: add missing case in _eglError()

---

 src/egl/main/eglcurrent.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/egl/main/eglcurrent.c b/src/egl/main/eglcurrent.c
index cbca9ff..4221a9b 100644
--- a/src/egl/main/eglcurrent.c
+++ b/src/egl/main/eglcurrent.c
@@ -286,6 +286,9 @@ _eglError(EGLint errCode, const char *msg)
       case EGL_BAD_SURFACE:
          s = "EGL_BAD_SURFACE";
          break;
+      case EGL_NOT_INITIALIZED:
+         s = "EGL_NOT_INITIALIZED";
+         break;
 #ifdef EGL_MESA_screen_surface
       case EGL_BAD_SCREEN_MESA:
          s = "EGL_BAD_SCREEN_MESA";
@@ -295,7 +298,7 @@ _eglError(EGLint errCode, const char *msg)
          break;
 #endif
       default:
-         s = "other";
+         s = "other EGL error";
       }
       _eglLog(_EGL_DEBUG, "EGL user error 0x%x (%s) in %s\n", errCode, s, msg);
    }




More information about the mesa-commit mailing list