diff options
-rw-r--r-- | src/gallium/state_trackers/glx/xlib/glx_api.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/src/gallium/state_trackers/glx/xlib/glx_api.c b/src/gallium/state_trackers/glx/xlib/glx_api.c index 05880ddcdda..d97cbd7d996 100644 --- a/src/gallium/state_trackers/glx/xlib/glx_api.c +++ b/src/gallium/state_trackers/glx/xlib/glx_api.c @@ -2724,26 +2724,8 @@ glXCreateContextAttribsARB(Display *dpy, GLXFBConfig config, } /* check version (generate BadMatch if bad) */ - switch (majorVersion) { - case 1: - if (minorVersion < 0 || minorVersion > 5) - return NULL; - break; - case 2: - if (minorVersion < 0 || minorVersion > 1) - return NULL; - break; - case 3: - if (minorVersion < 0 || minorVersion > 2) - return NULL; - break; - case 4: - if (minorVersion < 0 || minorVersion > 0) - return NULL; - break; - default: + if (majorVersion < 0 || minorVersion < 0) return NULL; - } if ((contextFlags & GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB) && majorVersion < 3) |