[Mesa-dev] [PATCH 14/19] glx: Reuse setSwapInterval for setting initial swap interval.

Chad Versace chad.versace at linux.intel.com
Fri Sep 28 15:56:34 PDT 2012


On 09/25/2012 07:50 PM, Eric Anholt wrote:
> ---
>  src/glx/dri2_glx.c |   11 +++++------
>  1 file changed, 5 insertions(+), 6 deletions(-)


> @@ -829,7 +826,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;

I think this patch should be split into two because it does more than a simple
replacement, as the subject claims. This hunk apparently fixes a bug.



More information about the mesa-dev mailing list