From 9a33a11d714c90162d32781ebbd2c1dfab52cfd1 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 13 Jun 2002 04:28:29 +0000 Subject: New _mesa_debug() function to replace fprintf() calls. Some source files updated to call _mesa_debug(), but not finished. Added __GLimports as a parameter to _mesa_create/init_context() and updated drivers accordingly. Fleshed-out more of the __GLimports and __GLexports functionality. Removed run-time config file support (config.c) --- src/mesa/drivers/windows/wmesa.c | 9 +++++++-- src/mesa/drivers/windows/wmesa_stereo.c | 5 ++++- 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'src/mesa/drivers/windows') diff --git a/src/mesa/drivers/windows/wmesa.c b/src/mesa/drivers/windows/wmesa.c index f7d47247d6..b973264cfb 100644 --- a/src/mesa/drivers/windows/wmesa.c +++ b/src/mesa/drivers/windows/wmesa.c @@ -1,4 +1,4 @@ -/* $Id: wmesa.c,v 1.28 2002/04/23 18:39:09 kschultz Exp $ */ +/* $Id: wmesa.c,v 1.29 2002/06/13 04:28:30 brianp Exp $ */ /* * Windows (Win32) device driver for Mesa 3.4 @@ -36,6 +36,7 @@ #include "dd.h" #include "depth.h" #include "extensions.h" +#include "imports.h" #include "macros.h" #include "matrix.h" #include "mem.h" @@ -1253,6 +1254,8 @@ WMesaContext WMesaCreateContext( HWND hWnd, HPALETTE* Pal, RECT CR; WMesaContext c; GLboolean true_color_flag; + __GLimports imports; + c = (struct wmesa_context * ) calloc(1,sizeof(struct wmesa_context)); if (!c) return NULL; @@ -1339,8 +1342,10 @@ WMesaContext WMesaCreateContext( HWND hWnd, HPALETTE* Pal, return NULL; } + _mesa_init_default_imports( &imports, (void *) c ); + /* allocate a new Mesa context */ - c->gl_ctx = _mesa_create_context( c->gl_visual, NULL, c, GL_TRUE); + c->gl_ctx = _mesa_create_context( c->gl_visual, NULL, &imports ); if (!c->gl_ctx) { _mesa_destroy_visual( c->gl_visual ); diff --git a/src/mesa/drivers/windows/wmesa_stereo.c b/src/mesa/drivers/windows/wmesa_stereo.c index 385f30b1b1..a4397c41bf 100644 --- a/src/mesa/drivers/windows/wmesa_stereo.c +++ b/src/mesa/drivers/windows/wmesa_stereo.c @@ -17,6 +17,7 @@ #include #include "context.h" #include "dd.h" +#include "imports.h" #include "xform.h" #include "vb.h" #include "matrix.h" @@ -1110,6 +1111,7 @@ WMesaContext /*APIENTRY*/ WMesaCreateContext( HWND hWnd, HPALETTE Pal, //HDC DC; RECT CR; WMesaContext c; + __GLimports imports; c = (struct wmesa_context * ) calloc(1,sizeof(struct wmesa_context)); if (!c) @@ -1196,7 +1198,8 @@ WMesaContext /*APIENTRY*/ WMesaCreateContext( HWND hWnd, HPALETTE Pal, } /* allocate a new Mesa context */ - c->gl_ctx = _mesa_create_context( c->gl_visual, NULL,c); + _mesa_init_default_imports( &imports, (void *) c ); + c->gl_ctx = _mesa_create_context( c->gl_visual, &imports ); if (!c->gl_ctx) { _mesa_destroy_visual( c->gl_visual ); -- cgit v1.2.3