-/* $Id: context.c,v 1.13 1999/10/10 12:49:36 brianp Exp $ */
+/* $Id: context.c,v 1.14 1999/10/10 13:04:54 brianp Exp $ */
/*
* Mesa 3-D graphics library
struct gl_shared_state *ss;
GLboolean outOfMemory;
- ss = (struct gl_shared_state*) calloc( 1, sizeof(struct gl_shared_state) );
+ ss = GL_CALLOC_STRUCT(gl_shared_state);
if (!ss)
return NULL;
return NULL;
}
- vis = (GLvisual *) calloc( 1, sizeof(GLvisual) );
+ vis = (GLvisual *) GL_CALLOC( sizeof(GLvisual) );
if (!vis) {
return NULL;
}
/* misc one-time initializations */
one_time_init();
- ctx = (GLcontext *) calloc( 1, sizeof(GLcontext) );
+ ctx = (GLcontext *) GL_CALLOC( sizeof(GLcontext) );
if (!ctx) {
return NULL;
}
{
GLframebuffer *buffer;
- buffer = (GLframebuffer *) calloc( 1, sizeof(GLframebuffer) );
+ buffer = (GLframebuffer *) GL_CALLOC( sizeof(GLframebuffer) );
if (!buffer) {
return NULL;
}
-/* $Id: image.c,v 1.4 1999/10/10 12:54:04 brianp Exp $ */
+/* $Id: image.c,v 1.5 1999/10/10 13:04:17 brianp Exp $ */
/*
* Mesa 3-D graphics library
*/
static struct gl_image *alloc_image( void )
{
- return (struct gl_image *) calloc(sizeof(struct gl_image), 1);
+ return GL_CALLOC_STRUCT(gl_image);
}
-/* $Id: texobj.c,v 1.4 1999/10/09 20:17:07 brianp Exp $ */
+/* $Id: texobj.c,v 1.5 1999/10/10 13:04:17 brianp Exp $ */
/*
* Mesa 3-D graphics library
}
}
/* free this object */
- free( t );
+ GL_FREE( t );
}