diff options
author | Matt Turner <[email protected]> | 2012-11-13 13:26:11 -0800 |
---|---|---|
committer | Matt Turner <[email protected]> | 2012-11-15 15:21:28 -0800 |
commit | 5b0012f5c27b05d3caa8081165dbaebddefc414f (patch) | |
tree | 474d5133e9df0b2d7e4a90bc8120a5e5884b541c | |
parent | ae1f09babb9c127d573050f4338b6f3d55cba377 (diff) |
mesa: return INVALID_VALUE from ClientWaitSync if flags contains an unsupported flag
Fixes gles3conform's sync_error_clientwaitsync_flags test.
Reviewed-by: Chad Versace <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
-rw-r--r-- | 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 1d178950c08..c4fe3447887 100644 --- a/src/mesa/main/syncobj.c +++ b/src/mesa/main/syncobj.c @@ -308,7 +308,7 @@ _mesa_ClientWaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout) } if ((flags & ~GL_SYNC_FLUSH_COMMANDS_BIT) != 0) { - _mesa_error(ctx, GL_INVALID_ENUM, "glClientWaitSync(flags=0x%x)", flags); + _mesa_error(ctx, GL_INVALID_VALUE, "glClientWaitSync(flags=0x%x)", flags); return GL_WAIT_FAILED; } |