main/syncobj: return GL_INVALID_VALUE for invalid sync objects
authorJordan Justen <jordan.l.justen@intel.com>
Tue, 4 Dec 2012 09:17:23 +0000 (01:17 -0800)
committerJordan Justen <jordan.l.justen@intel.com>
Thu, 6 Dec 2012 17:43:07 +0000 (09:43 -0800)
commite12d9f0c6df9f309ade2aea708264c81038685b1
treee994b75bff19b524a5b77efa4b8c39f12793859c
parent82c9d98ab9e8c0c94239551d84747b186d67ad73
main/syncobj: return GL_INVALID_VALUE for invalid sync objects

Note: The GL/GLES3 web man pages don't seem to properly
document glWaitSync's error when the sync object is invalid.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/syncobj.c