Revert "mesa: Add ARB_direct_state_access checks in query object functions"
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 18 May 2015 20:54:11 +0000 (13:54 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 28 May 2015 23:56:32 +0000 (16:56 -0700)
This reverts commit d3368e0c9e27ced6059eb2ecdf2aa999a00e90b0.

Acked-by: Fredrik Höglund <fredrik@kde.org>
Cc: "10.6" <mesa-stable@lists.freedesktop.org>
src/mesa/main/queryobj.c

index 2784b4c0532c05e58788e7550ea27a1dd73d081d..5ff1b95323194a0ec73fe78dd686ce4d03fe7b61 100644 (file)
@@ -284,13 +284,6 @@ _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: