intel: Fallback to software if drawable size is > MaxRenderbufferSize
[mesa.git] / src / mesa / state_tracker / st_cb_queryobj.c
index c1d0d086b4b9af1a26f36907d7d377cbf7e6f955..dcf4c38eb615d22f6f66bfcbecc253041edb9f34 100644 (file)
@@ -64,7 +64,7 @@ st_query_object(struct gl_query_object *q)
 static struct gl_query_object *
 st_NewQueryObject(GLcontext *ctx, GLuint id)
 {
-   struct st_query_object *stq = CALLOC_STRUCT(st_query_object);
+   struct st_query_object *stq = ST_CALLOC_STRUCT(st_query_object);
    if (stq) {
       stq->base.Id = id;
       stq->base.Ready = GL_TRUE;
@@ -87,14 +87,10 @@ st_DeleteQuery(GLcontext *ctx, struct gl_query_object *q)
       stq->pq = NULL;
    }
 
-   FREE(stq);
+   _mesa_free(stq);
 }
 
-/**
- * Do glReadPixels by getting rows from the framebuffer surface with
- * get_tile().  Convert to requested format/type with Mesa image routines.
- * Image transfer ops are done in software too.
- */
+
 static void
 st_BeginQuery(GLcontext *ctx, struct gl_query_object *q)
 {