summaryrefslogtreecommitdiffstats
path: root/src/glx
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2012-10-04 13:42:16 -0700
committerEric Anholt <[email protected]>2012-10-09 14:32:03 -0700
commitd0937759db09797836e290220236f61ab0f18259 (patch)
tree18676e60999437587dafd737132a7cfc0d291329 /src/glx
parentab8ae9301fe8c4843d902cb55e64620f5768c7b0 (diff)
glx: Allow glXSwapInterval(0) when vblank_mode=0.
There's no reason to say no in this case.
Diffstat (limited to 'src/glx')
-rw-r--r--src/glx/dri2_glx.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c
index 18542d18201..07a3384d0ab 100644
--- a/src/glx/dri2_glx.c
+++ b/src/glx/dri2_glx.c
@@ -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;