mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 04:40:11 +01:00
st/xlib: Do minimal version checking in glXCreateContextAttribsARB.
The current version checking is wrongly refusing to create 3.3 contexts; unsupported version are checked elsewhere; and the DRI path doesn't do this sort of checking neither. This enables piglit glsl 3.30 tests to run without skipping. Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
7380ce9bf6
commit
f438a82492
1 changed files with 1 additions and 19 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue