glx: Allow glXSwapInterval(0) when vblank_mode=0.

There's no reason to say no in this case.
This commit is contained in:
Eric Anholt 2012-10-04 13:42:16 -07:00
parent ab8ae9301f
commit d0937759db
1 changed files with 3 additions and 1 deletions

View File

@ -830,7 +830,9 @@ dri2SetSwapInterval(__GLXDRIdrawable *pdraw, int interval)
switch (vblank_mode) {
case DRI_CONF_VBLANK_NEVER:
return GLX_BAD_VALUE;
if (interval != 0)
return GLX_BAD_VALUE;
break;
case DRI_CONF_VBLANK_ALWAYS_SYNC:
if (interval <= 0)
return GLX_BAD_VALUE;