diff options
author | Eduardo Lima Mitev <[email protected]> | 2015-02-09 11:07:42 +0100 |
---|---|---|
committer | Iago Toral Quiroga <[email protected]> | 2015-02-24 08:58:53 +0100 |
commit | 36998664630e1e846011fd8436fd02476e1b647e (patch) | |
tree | 8a3046677c9c63b0151117cc02eda5508a720a3d /src/mesa/main/arrayobj.h | |
parent | 4db4a559adcad494cdd17d378602b4b97a51d2b8 (diff) |
mesa: Return INVALID_OPERATION when querying a never bound Query obj
Section 2.14 Asynchronous Queries, page 84 of the OpenGL ES 3.0.4 states:
"The command void GenQueries( sizei n, uint *ids ); returns n previously unused
query object names in ids. These names are marked as used, for the purposes of
GenQueries only, but no object is associated with them until the first time they
are used by BeginQuery."
This means that any attempt to use or query a Query object id before it has ever
been bound by calling glBeginQuery, should be assume to be an invalid object.
Fixes 1 dEQP test:
* dEQP-GLES3.functional.negative_api.state.get_query_objectuiv
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/main/arrayobj.h')
0 files changed, 0 insertions, 0 deletions