Mesa (master): egl: Use _EGL_CHECK_DISPLAY in eglCreateContext.

Chia-I Wu olv at kemper.freedesktop.org
Thu Sep 9 16:18:40 UTC 2010


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

Author: Chia-I Wu <olv at lunarg.com>
Date:   Fri Sep 10 00:06:32 2010 +0800

egl: Use _EGL_CHECK_DISPLAY in eglCreateContext.

_EGL_CHECK_DISPLAY checks the display and returns from eglCreateContext
on error.

---

 src/egl/main/eglapi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c
index 31c5419..829d700 100644
--- a/src/egl/main/eglapi.c
+++ b/src/egl/main/eglapi.c
@@ -405,7 +405,7 @@ eglCreateContext(EGLDisplay dpy, EGLConfig config, EGLContext share_list,
    if (config)
       _EGL_CHECK_CONFIG(disp, conf, EGL_NO_CONTEXT, drv);
    else
-      drv = _eglCheckDisplay(disp, __FUNCTION__);
+      _EGL_CHECK_DISPLAY(disp, EGL_NO_CONTEXT, drv);
 
    if (!share && share_list != EGL_NO_CONTEXT)
       RETURN_EGL_ERROR(disp, EGL_BAD_CONTEXT, EGL_NO_CONTEXT);




More information about the mesa-commit mailing list