[Mesa-dev] [PATCH 2/2] mesa: return INVALID_VALUE from WaitSync if flags != 0

Chad Versace chad.versace at linux.intel.com
Tue Nov 13 14:22:52 PST 2012


The GLES3 spec agrees.

For both patches,
Reviewed-by: Chad Versace <chad.versace at linux.intel.com>

On 11/13/2012 01:39 PM, Matt Turner wrote:
> Fixes gles3conform's sync_error_waitsync_flags test.
> ---
>  src/mesa/main/syncobj.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/src/mesa/main/syncobj.c b/src/mesa/main/syncobj.c
> index c4fe344..430c1ee 100644
> --- a/src/mesa/main/syncobj.c
> +++ b/src/mesa/main/syncobj.c
> @@ -352,7 +352,7 @@ _mesa_WaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout)
>     }
>  
>     if (flags != 0) {
> -      _mesa_error(ctx, GL_INVALID_ENUM, "glWaitSync(flags=0x%x)", flags);
> +      _mesa_error(ctx, GL_INVALID_VALUE, "glWaitSync(flags=0x%x)", flags);
>        return;
>     }
>  
> 



More information about the mesa-dev mailing list