Signed-off-by: Fredrik Höglund <fredrik@kde.org> Reviewed-by: Adam Jackson <ajax@redhat.com>tags/10.6-branchpoint
@@ -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: |