fix wrong inequality
authorBrian Paul <brian.paul@tungstengraphics.com>
Sun, 29 Oct 2006 18:14:00 +0000 (18:14 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Sun, 29 Oct 2006 18:14:00 +0000 (18:14 +0000)
src/mesa/shader/programopt.c

index b17f5afc699d6b18d73423be470123a6e9136e82..172d373b578ae959a1015913f7ec6bb61a60cb94 100644 (file)
@@ -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;