Skip to content

Commit

Permalink
mesa: Remove SWcontext::_FogMode, use gl_context::gl_fog_attrib::Mode…
Browse files Browse the repository at this point in the history
… everywhere

Reviewed-by: Brian Paul <brianp@vmware.com>
  • Loading branch information
ianromanick committed Apr 26, 2011
1 parent f274dfa commit cd354b4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion src/mesa/swrast/s_context.c
Expand Up @@ -252,7 +252,6 @@ _swrast_update_fog_state( struct gl_context *ctx )

/* determine if fog is needed, and if so, which fog mode */
swrast->_FogEnabled = (fp == NULL && ctx->Fog.Enabled);
swrast->_FogMode = ctx->Fog.Mode;
}


Expand Down
1 change: 0 additions & 1 deletion src/mesa/swrast/s_context.h
Expand Up @@ -135,7 +135,6 @@ typedef struct
GLboolean _TextureCombinePrimary;
GLboolean _FogEnabled;
GLboolean _DeferredTexture;
GLenum _FogMode; /* either GL_FOG_MODE or fragment program's fog mode */

/** List/array of the fragment attributes to interpolate */
GLuint _ActiveAttribs[FRAG_ATTRIB_MAX];
Expand Down
2 changes: 1 addition & 1 deletion src/mesa/swrast/s_fog.c
Expand Up @@ -158,7 +158,7 @@ _swrast_fog_rgba_span( const struct gl_context *ctx, SWspan *span )
/* The span's fog values are fog coordinates, now compute blend factors
* and blend the fragment colors with the fog color.
*/
switch (swrast->_FogMode) {
switch (ctx->Fog.Mode) {
case GL_LINEAR:
{
const GLfloat fogEnd = ctx->Fog.End;
Expand Down

0 comments on commit cd354b4

Please sign in to comment.