mesa/queryobject: return INVALID_VALUE if offset < 0 (v2)
authorDave Airlie <airlied@redhat.com>
Sun, 22 May 2016 21:20:50 +0000 (07:20 +1000)
committerDave Airlie <airlied@redhat.com>
Sun, 22 May 2016 21:33:03 +0000 (07:33 +1000)
commit62c728f7d84400c19681971855338e3e9e8e80da
tree3a293cbe20ecb13b1df2302e2881051abc76730a
parenta7fad12931a62bdd8483b68f7cccbf0ca01bcb89
mesa/queryobject: return INVALID_VALUE if offset < 0 (v2)

This fixes:
GL45-CTS.direct_state_access.queries_errors

The ARB_direct_state_access spec agrees.

v2: move check down further (Ilia)

Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/main/queryobj.c