diff options
author | Brian Paul <[email protected]> | 2004-10-13 15:54:48 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2004-10-13 15:54:48 +0000 |
commit | dfe508ca7af1a6d1099cd65e257512ed1e17d893 (patch) | |
tree | 1393d22cefdabb68c1b35bb24c108edd76b8abf9 /src/mesa/swrast/s_fog.c | |
parent | 886df0926fe6b3d8f82cff62747abfdb95540aa0 (diff) |
Fix minor fog / fragment program state bug.
Don't add diffuse and specular colors when using fragment program.
Diffstat (limited to 'src/mesa/swrast/s_fog.c')
-rw-r--r-- | src/mesa/swrast/s_fog.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/mesa/swrast/s_fog.c b/src/mesa/swrast/s_fog.c index 89ed1152b28..613759d1c1d 100644 --- a/src/mesa/swrast/s_fog.c +++ b/src/mesa/swrast/s_fog.c @@ -1,9 +1,8 @@ - /* * Mesa 3-D graphics library - * Version: 4.1 + * Version: 6.3 * - * Copyright (C) 1999-2002 Brian Paul All Rights Reserved. + * Copyright (C) 1999-2004 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -34,8 +33,6 @@ #include "s_span.h" - - /** * Used to convert current raster distance to a fog factor in [0,1]. */ @@ -99,7 +96,7 @@ _swrast_fog_rgba_span( const GLcontext *ctx, struct sw_span *span ) /* The span's fog values are fog coordinates, now compute blend factors * and blend the fragment colors with the fog color. */ - switch (ctx->Fog.Mode) { + switch (swrast->_FogMode) { case GL_LINEAR: { const GLfloat fogEnd = ctx->Fog.End; |