mesa: don't ever bind NullBufferObj for glBindBuffer targets
[mesa.git] / src / mesa / main / queryobj.c
index 032f9e9a43719204f2071e2bd18d35da7da5b65b..0bbc5cfb88779086e7ee3530319da3a216a8b8da 100644 (file)
@@ -825,7 +825,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)) {