diff options
Diffstat (limited to 'xc/extras/Mesa/src/vb.c')
-rw-r--r-- | xc/extras/Mesa/src/vb.c | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/xc/extras/Mesa/src/vb.c b/xc/extras/Mesa/src/vb.c index e3a3433f0..1677806b6 100644 --- a/xc/extras/Mesa/src/vb.c +++ b/xc/extras/Mesa/src/vb.c @@ -1,8 +1,7 @@ -/* $Id: vb.c,v 1.1.1.1 2000/01/06 13:27:08 faith Exp $ */ /* * Mesa 3-D graphics library - * Version: 3.1 + * Version: 3.3 * * Copyright (C) 1999 Brian Paul All Rights Reserved. * @@ -25,18 +24,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 +254,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; |