diff options
author | Fredrik Höglund <[email protected]> | 2015-05-10 20:57:29 +0200 |
---|---|---|
committer | Fredrik Höglund <[email protected]> | 2015-05-14 15:48:17 +0200 |
commit | d3368e0c9e27ced6059eb2ecdf2aa999a00e90b0 (patch) | |
tree | 09c85a0e12e0b00a46ae25acb96c9eb3a3542376 /src/mesa/main/queryobj.c | |
parent | bebf3c6ab314bde05ac5a3b4d3e63fd36243c58e (diff) |
mesa: Add ARB_direct_state_access checks in query object functions
Signed-off-by: Fredrik Höglund <[email protected]>
Reviewed-by: Adam Jackson <[email protected]>
Diffstat (limited to 'src/mesa/main/queryobj.c')
-rw-r--r-- | src/mesa/main/queryobj.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/main/queryobj.c b/src/mesa/main/queryobj.c index 5ff1b953231..2784b4c0532 100644 --- a/src/mesa/main/queryobj.c +++ b/src/mesa/main/queryobj.c @@ -284,6 +284,13 @@ _mesa_CreateQueries(GLenum target, GLsizei n, GLuint *ids) { GET_CURRENT_CONTEXT(ctx); + if (!ctx->Extensions.ARB_direct_state_access) { + _mesa_error(ctx, GL_INVALID_OPERATION, + "glCreateQueries(GL_ARB_direct_state_access " + "is not supported)"); + return; + } + switch (target) { case GL_SAMPLES_PASSED: case GL_ANY_SAMPLES_PASSED: |