diff options
author | Eric Anholt <[email protected]> | 2012-10-04 13:42:16 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2012-10-09 14:32:03 -0700 |
commit | d0937759db09797836e290220236f61ab0f18259 (patch) | |
tree | 18676e60999437587dafd737132a7cfc0d291329 /src/glx/dri2_glx.c | |
parent | ab8ae9301fe8c4843d902cb55e64620f5768c7b0 (diff) |
glx: Allow glXSwapInterval(0) when vblank_mode=0.
There's no reason to say no in this case.
Diffstat (limited to 'src/glx/dri2_glx.c')
-rw-r--r-- | src/glx/dri2_glx.c | 4 |
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; |