projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0275b0
)
fix a fragment fog regression
author
Brian
<brian@yutani.localnet.net>
Tue, 27 Mar 2007 20:02:04 +0000
(14:02 -0600)
committer
Brian
<brian@yutani.localnet.net>
Tue, 27 Mar 2007 22:06:47 +0000
(16:06 -0600)
src/mesa/tnl/t_context.c
patch
|
blob
|
history
diff --git
a/src/mesa/tnl/t_context.c
b/src/mesa/tnl/t_context.c
index 255c2bdf90dbec5ac53cf891684855e90c1fbefc..3017c73cf1f828beb9229697e306921fbc44dc85 100644
(file)
--- a/
src/mesa/tnl/t_context.c
+++ b/
src/mesa/tnl/t_context.c
@@
-138,7
+138,7
@@
_tnl_InvalidateState( GLcontext *ctx, GLuint new_state )
}
if (ctx->Fog.Enabled ||
- (
ctx->FragmentProgram._Active
&&
+ (
(ctx->FragmentProgram._Active || ctx->FragmentProgram._Current)
&&
(ctx->FragmentProgram._Current->FogOption != GL_NONE ||
(ctx->FragmentProgram._Current->Base.InputsRead & FRAG_BIT_FOGC))))
RENDERINPUTS_SET( tnl->render_inputs_bitset, _TNL_ATTRIB_FOG );