From d0937759db09797836e290220236f61ab0f18259 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 4 Oct 2012 13:42:16 -0700 Subject: [PATCH] glx: Allow glXSwapInterval(0) when vblank_mode=0. There's no reason to say no in this case. --- src/glx/dri2_glx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.30.2