summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-04-26 20:56:21 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-04-26 20:56:21 +0000
commit55d8dd4078e58e6d2fe2c513861ff06b6bc114fc (patch)
tree39a504c0f053a04b7a94b8768037f96e841bbfa4
parentd09df24082d69e534470f9a5f667b30c34ae6d74 (diff)
tweak previous fog/fragment program fix
-rw-r--r--src/mesa/tnl/t_context.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mesa/tnl/t_context.c b/src/mesa/tnl/t_context.c
index 40b030cb12..5e8b2324dc 100644
--- a/src/mesa/tnl/t_context.c
+++ b/src/mesa/tnl/t_context.c
@@ -1,8 +1,8 @@
/*
* Mesa 3-D graphics library
- * Version: 6.1
+ * Version: 6.3
*
- * Copyright (C) 1999-2004 Brian Paul All Rights Reserved.
+ * Copyright (C) 1999-2005 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"),
@@ -175,7 +175,9 @@ _tnl_InvalidateState( GLcontext *ctx, GLuint new_state )
tnl->render_inputs |= (_TNL_BIT_POS|_TNL_BIT_INDEX);
}
- if (ctx->Fog.Enabled || ctx->FragmentProgram.Current->FogOption != GL_NONE)
+ if (ctx->Fog.Enabled ||
+ (ctx->FragmentProgram.Enabled &&
+ ctx->FragmentProgram.Current->FogOption != GL_NONE))
tnl->render_inputs |= _TNL_BIT_FOG;
if (ctx->Polygon.FrontMode != GL_FILL ||