diff options
author | Brian Paul <[email protected]> | 2002-10-24 23:57:19 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2002-10-24 23:57:19 +0000 |
commit | 3c63452e64df7e10aa073c6c3b9492b1d7dabbb8 (patch) | |
tree | 87cc7c71b05da7a19f914368ded66e7bb8c00e8e /src/mesa/drivers/x11/xm_api.c | |
parent | d0add7cf1a6b99cafd25e23fe2fc9d0b6657079a (diff) |
Header file clean-up:
1. Remove all.h and PC_HEADER junk.
2. Rolled mem.c and mem.h into imports.c and imports.h
3. Include imports.h instead of mem.h
Restore _mesa_create/initialize_context() to be like they were in 4.0.4
New wrappers for a few std C functions: _mesa_atoi(), _mesa_strstr(), etc.
Diffstat (limited to 'src/mesa/drivers/x11/xm_api.c')
-rw-r--r-- | src/mesa/drivers/x11/xm_api.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/mesa/drivers/x11/xm_api.c b/src/mesa/drivers/x11/xm_api.c index c4463af6901..9ea50fb8bc7 100644 --- a/src/mesa/drivers/x11/xm_api.c +++ b/src/mesa/drivers/x11/xm_api.c @@ -1,4 +1,4 @@ -/* $Id: xm_api.c,v 1.45 2002/10/14 17:08:34 brianp Exp $ */ +/* $Id: xm_api.c,v 1.46 2002/10/24 23:57:23 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -71,12 +71,8 @@ #include "glthread.h" #include "imports.h" #include "matrix.h" -#include "mem.h" #include "mmath.h" #include "mtypes.h" -#ifdef HAVE_CONFIG_H -#include "conf.h" -#endif #include "macros.h" #include "texformat.h" #include "texstore.h" @@ -1619,7 +1615,7 @@ XMesaContext XMesaCreateContext( XMesaVisual v, XMesaContext share_list ) static GLboolean firstTime = GL_TRUE; XMesaContext c; GLcontext *ctx; - __GLimports imports; + GLboolean direct = GL_TRUE; /* not really */ if (firstTime) { _glthread_INIT_MUTEX(_xmesa_lock); @@ -1631,10 +1627,9 @@ XMesaContext XMesaCreateContext( XMesaVisual v, XMesaContext share_list ) return NULL; } - _mesa_init_default_imports( &imports, (void *) c ); ctx = c->gl_ctx = _mesa_create_context( &v->mesa_visual, share_list ? share_list->gl_ctx : (GLcontext *) NULL, - &imports ); + (void *) c, direct); if (!c->gl_ctx) { FREE(c); return NULL; |