fix wrong inequality

This commit is contained in:
Brian Paul
2006-10-29 18:14:00 +00:00
parent d6272e0617
commit abb1430c79
+1 -1
View 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;