diff options
author | Chia-I Wu <[email protected]> | 2010-09-10 00:06:32 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2010-09-10 00:18:23 +0800 |
commit | 916c8ed2c8f916604166b22e6fcb9433b960a924 (patch) | |
tree | ecd59bb9abe8954b8e8c72497e9ad1463688f5db | |
parent | 08a482e7a9d13db5d4e6fd974942f6699d7d49dc (diff) |
egl: Use _EGL_CHECK_DISPLAY in eglCreateContext.
_EGL_CHECK_DISPLAY checks the display and returns from eglCreateContext
on error.
-rw-r--r-- | 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 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); |