From 32cc20d9f52ef48e6cbfb8e8b90a5f7660b73421 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Tue, 13 Nov 2012 13:26:11 -0800 Subject: [PATCH] mesa: return INVALID_VALUE from WaitSync if flags != 0 Fixes gles3conform's sync_error_waitsync_flags test. Reviewed-by: Chad Versace Reviewed-by: Kenneth Graunke --- src/mesa/main/syncobj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/syncobj.c b/src/mesa/main/syncobj.c index c4fe3447887..430c1eeb56d 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; } -- 2.30.2