summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2006-10-29 18:14:00 +0000
committerBrian Paul <[email protected]>2006-10-29 18:14:00 +0000
commitabb1430c79024198bdc9816465d3c8bc963adf8b (patch)
treef9a90e2af9b7b61f0d1cd27774c1cf2756839f43 /src
parentd6272e06172f7ac7a0d6e8062e8ffba33e1ab3ba (diff)
fix wrong inequality
Diffstat (limited to 'src')
-rw-r--r--src/mesa/shader/programopt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/programopt.c b/src/mesa/shader/programopt.c
index b17f5afc699..172d373b578 100644
--- a/src/mesa/shader/programopt.c
+++ b/src/mesa/shader/programopt.c
@@ -137,7 +137,7 @@ _mesa_append_fog_code(GLcontext *ctx, struct gl_fragment_program *fprog)
GLfloat fogVals[4];
GLuint fogConsts; /* constant values for EXP, EXP2 mode */
- if (fprog->FogOption != GL_NONE) {
+ if (fprog->FogOption == GL_NONE) {
_mesa_problem(ctx, "_mesa_append_fog_code() called for fragment program"
" with FogOption == GL_NONE");
return;