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
/* 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 */