diff options
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/glide/fxdd.c | 6 | ||||
-rw-r--r-- | src/mesa/drivers/x11/xm_dd.c | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/mesa/drivers/glide/fxdd.c b/src/mesa/drivers/glide/fxdd.c index 0305a2740b..24dd9946a3 100644 --- a/src/mesa/drivers/glide/fxdd.c +++ b/src/mesa/drivers/glide/fxdd.c @@ -766,6 +766,10 @@ int fxDDInitFxMesaContext( fxMesaContext fxMesa ) _swrast_CreateContext( fxMesa->glCtx ); _swsetup_CreateContext( fxMesa->glCtx ); + /* Tell the software rasterizer to use pixel fog always. + */ + _swrast_allow_vertex_fog( fxMesa->glCtx, GL_FALSE ); + _swrast_allow_pixel_fog( fxMesa->glCtx, GL_TRUE ); fxSetupDDPointers(fxMesa->glCtx); fxDDInitExtensions(fxMesa->glCtx); @@ -992,7 +996,7 @@ void fxSetupDDPointers(GLcontext *ctx) ctx->Driver.Flush=NULL; ctx->Driver.RenderStart=NULL; - ctx->Driver.RenderFinish=NULL; + ctx->Driver.RenderFinish=_swrast_flush; ctx->Driver.TexImage2D = fxDDTexImage2D; ctx->Driver.TexSubImage2D = fxDDTexSubImage2D; diff --git a/src/mesa/drivers/x11/xm_dd.c b/src/mesa/drivers/x11/xm_dd.c index 79adf4e014..179178e258 100644 --- a/src/mesa/drivers/x11/xm_dd.c +++ b/src/mesa/drivers/x11/xm_dd.c @@ -1,4 +1,4 @@ -/* $Id: xm_dd.c,v 1.3 2000/11/05 18:26:12 keithw Exp $ */ +/* $Id: xm_dd.c,v 1.4 2000/11/13 20:02:57 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -947,7 +947,7 @@ void xmesa_init_pointers( GLcontext *ctx ) ctx->Driver.Finish = finish; ctx->Driver.RenderStart = 0; - ctx->Driver.RenderFinish = 0; + ctx->Driver.RenderFinish = _swrast_flush; ctx->Driver.SetDrawBuffer = set_draw_buffer; ctx->Driver.SetReadBuffer = set_read_buffer; |