[Mesa-dev] [PATCH 1/2] mesa: return INVALID_VALUE from ClientWaitSync if flags contains an unsupported flag

Matt Turner mattst88 at gmail.com
Tue Nov 13 13:39:44 PST 2012


Fixes gles3conform's sync_error_clientwaitsync_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 1d17895..c4fe344 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;
    }
 
-- 
1.7.8.6



More information about the mesa-dev mailing list