Browse Source

mesa: Add ARB_direct_state_access checks in query object functions

Signed-off-by: Fredrik Höglund <fredrik@kde.org>
Reviewed-by: Adam Jackson <ajax@redhat.com>
tags/10.6-branchpoint
Fredrik Höglund 10 years ago
parent
commit
d3368e0c9e
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      src/mesa/main/queryobj.c

+ 7
- 0
src/mesa/main/queryobj.c View File

@@ -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:

Loading…
Cancel
Save