From: Eric Anholt Date: Thu, 4 Oct 2012 20:42:16 +0000 (-0700) Subject: glx: Allow glXSwapInterval(0) when vblank_mode=0. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d0937759db09797836e290220236f61ab0f18259;p=mesa.git glx: Allow glXSwapInterval(0) when vblank_mode=0. There's no reason to say no in this case. --- 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;