aboutsummaryrefslogtreecommitdiffstats
path: root/src/glx/g_glxglvnddispatchfuncs.c
diff options
context:
space:
mode:
authorAdam Jackson <[email protected]>2019-09-26 11:07:13 -0400
committerAdam Jackson <[email protected]>2019-09-26 11:07:13 -0400
commita14e3b43be17997ab67a362addddab44ac856869 (patch)
tree10dabb8e89ca33ead6cb1348a2d4285120b7c885 /src/glx/g_glxglvnddispatchfuncs.c
parent30f0c0ea7db129dafb2e879de8faad6907a09791 (diff)
Revert "glx: Implement GLX_EXT_no_config_context"
This reverts commit 0d635ccc912d7122f35f81eec27d8b2c0a2a7a28. Gitlab: https://gitlab.freedesktop.org/mesa/mesa/issues/1207
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;