projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08a482e
)
egl: Use _EGL_CHECK_DISPLAY in eglCreateContext.
author
Chia-I Wu
<olv@lunarg.com>
Thu, 9 Sep 2010 16:06:32 +0000
(
00:06
+0800)
committer
Chia-I Wu
<olv@lunarg.com>
Thu, 9 Sep 2010 16:18:23 +0000
(
00:18
+0800)
_EGL_CHECK_DISPLAY checks the display and returns from eglCreateContext
on error.
src/egl/main/eglapi.c
patch
|
blob
|
history
diff --git
a/src/egl/main/eglapi.c
b/src/egl/main/eglapi.c
index 31c5419bbc3f7b34e0dc9956cd6cadf41781a20b..829d700b24fc42d84a8b6a62bcf3967bbccd7a0b 100644
(file)
--- 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);