intel/disasm: brw_label and support functions
[mesa.git] / src / mesa / main / queryobj.c
index 981ccf8f9c0433dda6be5e451c1b8eaabadf6e86..e54a37b8e890afd3a6db2d319b8ac74d50189b6d 100644 (file)
 #include "context.h"
 #include "enums.h"
 #include "hash.h"
-#include "imports.h"
+
 #include "queryobj.h"
 #include "mtypes.h"
+#include "util/u_memory.h"
 
 
 /**
@@ -825,7 +826,7 @@ get_query_object(struct gl_context *ctx, const char *func,
       return;
    }
 
-   if (buf && buf != ctx->Shared->NullBufferObj) {
+   if (buf) {
       bool is_64bit = ptype == GL_INT64_ARB ||
          ptype == GL_UNSIGNED_INT64_ARB;
       if (!_mesa_has_ARB_query_buffer_object(ctx)) {