From bd5cdaf4442872d3cd2ff94eeafadd481d27fcfb Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 13 Oct 1999 18:42:49 +0000 Subject: removed GL_ prefix from memory macros --- src/mesa/drivers/osmesa/osmesa.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/mesa/drivers') diff --git a/src/mesa/drivers/osmesa/osmesa.c b/src/mesa/drivers/osmesa/osmesa.c index 25bba5b5e8..91da84565e 100644 --- a/src/mesa/drivers/osmesa/osmesa.c +++ b/src/mesa/drivers/osmesa/osmesa.c @@ -1,4 +1,4 @@ -/* $Id: osmesa.c,v 1.1 1999/08/19 00:55:42 jtg Exp $ */ +/* $Id: osmesa.c,v 1.2 1999/10/13 18:43:46 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -212,7 +212,7 @@ OSMesaContext GLAPIENTRY OSMesaCreateContext( GLenum format, OSMesaContext share } - osmesa = (OSMesaContext) calloc( 1, sizeof(struct osmesa_context) ); + osmesa = (OSMesaContext) CALLOC_STRUCT(osmesa_context); if (osmesa) { osmesa->gl_visual = gl_create_visual( rgbmode, swalpha, /* software alpha */ @@ -232,14 +232,14 @@ OSMesaContext GLAPIENTRY OSMesaCreateContext( GLenum format, OSMesaContext share (void *) osmesa, GL_TRUE ); if (!osmesa->gl_ctx) { gl_destroy_visual( osmesa->gl_visual ); - free(osmesa); + FREE(osmesa); return NULL; } osmesa->gl_buffer = gl_create_framebuffer( osmesa->gl_visual ); if (!osmesa->gl_buffer) { gl_destroy_visual( osmesa->gl_visual ); gl_destroy_context( osmesa->gl_ctx ); - free(osmesa); + FREE(osmesa); return NULL; } osmesa->format = format; @@ -275,7 +275,7 @@ void GLAPIENTRY OSMesaDestroyContext( OSMesaContext ctx ) gl_destroy_visual( ctx->gl_visual ); gl_destroy_framebuffer( ctx->gl_buffer ); gl_destroy_context( ctx->gl_ctx ); - free( ctx ); + FREE( ctx ); } } -- cgit v1.2.3