diff options
Diffstat (limited to 'xc/extras/Mesa/src/vb.c')
-rw-r--r-- | xc/extras/Mesa/src/vb.c | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/xc/extras/Mesa/src/vb.c b/xc/extras/Mesa/src/vb.c index 932bcf243..a18b6c907 100644 --- a/xc/extras/Mesa/src/vb.c +++ b/xc/extras/Mesa/src/vb.c @@ -1,8 +1,8 @@ -/* $Id: vb.c,v 1.3 1999/12/14 02:39:39 daryll Exp $ */ +/* $Id: vb.c,v 1.4 2000/01/30 00:27:02 brianp Exp $ */ /* * Mesa 3-D graphics library - * Version: 3.1 + * Version: 3.3 * * Copyright (C) 1999 Brian Paul All Rights Reserved. * @@ -25,18 +25,11 @@ */ - - - #ifdef PC_HEADER #include "all.h" #else -#ifndef XFree86Server -#include <stdlib.h> -#include <stdio.h> -#else -#include "GL/xf86glx.h" -#endif +#include "glheader.h" +#include "mem.h" #include "types.h" #include "vb.h" #include "vbxform.h" @@ -262,8 +255,9 @@ struct immediate *gl_immediate_alloc( GLcontext *ctx ) return IM; } - IM= (struct immediate *) MALLOC(sizeof(*IM)); - if (!IM) return 0; + IM = MALLOC_STRUCT(immediate); + if (!IM) + return 0; IM->id = id++; IM->ref_count = 1; |