From abb1430c79024198bdc9816465d3c8bc963adf8b Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sun, 29 Oct 2006 18:14:00 +0000 Subject: fix wrong inequality --- src/mesa/shader/programopt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/shader/programopt.c') 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; -- cgit v1.2.3