diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2002-06-15 02:38:15 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2002-06-15 02:38:15 +0000 |
commit | 4753d60dd070bb08d0116076bcc08025c86ce857 (patch) | |
tree | b1516c35acfa41ae17d575b92b8c776bd530297a /src/mesa/drivers/glide | |
parent | 5e54ddc3a69df060c3ca2acbdd45247e30c947d6 (diff) |
Added ctx parameter to _mesa_debug()
Added _mesa_printf()
Updated SetDrawBuffer() function in all drivers (ala 4.0.3)
Import 4.0.3/DRI changes.
Diffstat (limited to 'src/mesa/drivers/glide')
-rw-r--r-- | src/mesa/drivers/glide/fxapi.c | 9 | ||||
-rw-r--r-- | src/mesa/drivers/glide/fxdd.c | 10 | ||||
-rw-r--r-- | src/mesa/drivers/glide/fxvb.c | 4 |
3 files changed, 12 insertions, 11 deletions
diff --git a/src/mesa/drivers/glide/fxapi.c b/src/mesa/drivers/glide/fxapi.c index 2aab6b1121..5ba01b66e7 100644 --- a/src/mesa/drivers/glide/fxapi.c +++ b/src/mesa/drivers/glide/fxapi.c @@ -1,4 +1,4 @@ -/* $Id: fxapi.c,v 1.32 2001/09/23 16:50:01 brianp Exp $ */ +/* $Id: fxapi.c,v 1.33 2002/06/15 02:38:16 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -283,6 +283,7 @@ fxMesaCreateContext(GLuint win, char *errorstr; GLboolean useBGR; char *system = NULL; + __GLimports imports; if (MESA_VERBOSE & VERBOSE_DRIVER) { fprintf(stderr, "fxmesa: fxMesaCreateContext() Start\n"); @@ -508,8 +509,10 @@ fxMesaCreateContext(GLuint win, goto errorhandler; } - ctx = fxMesa->glCtx = _mesa_create_context(fxMesa->glVis, shareCtx, /* share list context */ - (void *) fxMesa, GL_TRUE); + _mesa_init_default_imports( &imports, (void *) fxMesa); + ctx = fxMesa->glCtx = _mesa_create_context(fxMesa->glVis, + shareCtx, + &imports); if (!ctx) { errorstr = "_mesa_create_context"; goto errorhandler; diff --git a/src/mesa/drivers/glide/fxdd.c b/src/mesa/drivers/glide/fxdd.c index a5541eceb1..caff948851 100644 --- a/src/mesa/drivers/glide/fxdd.c +++ b/src/mesa/drivers/glide/fxdd.c @@ -1,4 +1,4 @@ -/* $Id: fxdd.c,v 1.86 2002/06/13 04:28:30 brianp Exp $ */ +/* $Id: fxdd.c,v 1.87 2002/06/15 02:38:16 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -264,7 +264,7 @@ fxDDClear(GLcontext * ctx, GLbitfield mask, GLboolean all, /* Set the buffer used for drawing */ /* XXX support for separate read/draw buffers hasn't been tested */ -static GLboolean +static void fxDDSetDrawBuffer(GLcontext * ctx, GLenum mode) { fxMesaContext fxMesa = (fxMesaContext) ctx->DriverCtx; @@ -276,19 +276,17 @@ fxDDSetDrawBuffer(GLcontext * ctx, GLenum mode) if (mode == GL_FRONT_LEFT) { fxMesa->currentFB = GR_BUFFER_FRONTBUFFER; FX_grRenderBuffer(fxMesa->currentFB); - return GL_TRUE; } else if (mode == GL_BACK_LEFT) { fxMesa->currentFB = GR_BUFFER_BACKBUFFER; FX_grRenderBuffer(fxMesa->currentFB); - return GL_TRUE; } else if (mode == GL_NONE) { FX_grColorMask(FXFALSE, FXFALSE); - return GL_TRUE; } else { - return GL_FALSE; + /* we'll need a software fallback */ + /* XXX not implemented */ } } diff --git a/src/mesa/drivers/glide/fxvb.c b/src/mesa/drivers/glide/fxvb.c index 4983d5f12b..f0534b65ec 100644 --- a/src/mesa/drivers/glide/fxvb.c +++ b/src/mesa/drivers/glide/fxvb.c @@ -1,4 +1,4 @@ -/* $Id: fxvb.c,v 1.12 2002/06/06 16:19:25 brianp Exp $ */ +/* $Id: fxvb.c,v 1.13 2002/06/15 02:38:16 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -352,7 +352,7 @@ void fxChooseVertexState( GLcontext *ctx ) ind |= SETUP_TMU0; } } - else if (ctx->Texture._ReallyEnabled & TETURE0_ANY) { + else if (ctx->Texture._ReallyEnabled & TEXTURE0_ANY) { ind |= SETUP_TMU0; } |