glx: Allow glXSwapInterval(0) when vblank_mode=0.
There's no reason to say no in this case.
This commit is contained in:
parent
ab8ae9301f
commit
d0937759db
|
@ -830,7 +830,9 @@ dri2SetSwapInterval(__GLXDRIdrawable *pdraw, int interval)
|
|||
|
||||
switch (vblank_mode) {
|
||||
case DRI_CONF_VBLANK_NEVER:
|
||||
if (interval != 0)
|
||||
return GLX_BAD_VALUE;
|
||||
break;
|
||||
case DRI_CONF_VBLANK_ALWAYS_SYNC:
|
||||
if (interval <= 0)
|
||||
return GLX_BAD_VALUE;
|
||||
|
|
Loading…
Reference in New Issue