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) {
|
switch (vblank_mode) {
|
||||||
case DRI_CONF_VBLANK_NEVER:
|
case DRI_CONF_VBLANK_NEVER:
|
||||||
return GLX_BAD_VALUE;
|
if (interval != 0)
|
||||||
|
return GLX_BAD_VALUE;
|
||||||
|
break;
|
||||||
case DRI_CONF_VBLANK_ALWAYS_SYNC:
|
case DRI_CONF_VBLANK_ALWAYS_SYNC:
|
||||||
if (interval <= 0)
|
if (interval <= 0)
|
||||||
return GLX_BAD_VALUE;
|
return GLX_BAD_VALUE;
|
||||||
|
|
Loading…
Reference in New Issue