diff options
Diffstat (limited to 'src')
-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; |