summaryrefslogtreecommitdiff
path: root/src/glx/g_glxglvnddispatchfuncs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glx/g_glxglvnddispatchfuncs.c')
-rw-r--r--src/glx/g_glxglvnddispatchfuncs.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/glx/g_glxglvnddispatchfuncs.c b/src/glx/g_glxglvnddispatchfuncs.c
index 78c097febb6..0f02ed2d321 100644
--- a/src/glx/g_glxglvnddispatchfuncs.c
+++ b/src/glx/g_glxglvnddispatchfuncs.c
@@ -160,19 +160,7 @@ static GLXContext dispatch_CreateContextAttribsARB(Display *dpy,
__GLXvendorInfo *dd;
GLXContext ret;
- if (config) {
- dd = GetDispatchFromFBConfig(dpy, config);
- } else if (attrib_list) {
- int i, screen;
-
- for (i = 0; attrib_list[i * 2] != None; i++) {
- if (attrib_list[i * 2] == GLX_SCREEN) {
- screen = attrib_list[i * 2 + 1];
- dd = GetDispatchFromDrawable(dpy, RootWindow(dpy, screen));
- break;
- }
- }
- }
+ dd = GetDispatchFromFBConfig(dpy, config);
if (dd == NULL)
return None;