diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2000-11-13 20:02:56 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2000-11-13 20:02:56 +0000 |
commit | 1e1aac034c986a08248861363c0baa27dc2ae2d5 (patch) | |
tree | d6aa2dd575eae913007d089928d765be8c867126 /src/mesa/drivers/glide | |
parent | 6b8ae62d6b6a3b06c51628123fc30634cacf9c7c (diff) |
Cleanup of derived state calculation prior to seperating software T&L
into a new directory. Specifically the handling of changes to lighting
lighting space (light in model vs. light in eye) have been revamped.
Moved several derived values used only by swrast into that directory.
Removed direct calls to swrast_flush() from vbrender.c -- pushed into
ctx->Driver.RenderFinish.
Optimized flat-shading case in swrast_setup.
Diffstat (limited to 'src/mesa/drivers/glide')
-rw-r--r-- | src/mesa/drivers/glide/fxdd.c | 6 |
1 files changed, 5 insertions, 1 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; |