From: Chia-I Wu Date: Thu, 9 Sep 2010 16:06:32 +0000 (+0800) Subject: egl: Use _EGL_CHECK_DISPLAY in eglCreateContext. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=916c8ed2c8f916604166b22e6fcb9433b960a924;p=mesa.git egl: Use _EGL_CHECK_DISPLAY in eglCreateContext. _EGL_CHECK_DISPLAY checks the display and returns from eglCreateContext on error. --- diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index 31c5419bbc3..829d700b24f 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);