i965/gs: implement EndPrimitive() functionality in the visitor.
[mesa.git] / src / mesa / drivers / dri / nouveau / nouveau_bufferobj.c
index 1782714652258a17e230e7abedbd3f544ddca444..717c0b8f11d6804b4eb27a68f972d4fbe82ebafa 100644 (file)
@@ -67,8 +67,8 @@ nouveau_bufferobj_del(struct gl_context *ctx, struct gl_buffer_object *obj)
        struct nouveau_bufferobj *nbo = to_nouveau_bufferobj(obj);
 
        nouveau_bo_ref(NULL, &nbo->bo);
-       FREE(nbo->sys);
-       FREE(nbo);
+       free(nbo->sys);
+       free(nbo);
 }
 
 static GLboolean
@@ -84,13 +84,13 @@ nouveau_bufferobj_data(struct gl_context *ctx, GLenum target, GLsizeiptrARB size
 
        /* Free previous storage */
        nouveau_bo_ref(NULL, &nbo->bo);
-       FREE(nbo->sys);
+       free(nbo->sys);
 
        if (target == GL_ELEMENT_ARRAY_BUFFER_ARB ||
            (size < 512 && usage == GL_DYNAMIC_DRAW_ARB) ||
            context_chipset(ctx) < 0x10) {
                /* Heuristic: keep it in system ram */
-               nbo->sys = MALLOC(size);
+               nbo->sys = malloc(size);
 
        } else {
                /* Get a hardware BO */