Fix Windows newlines.
[mesa.git] / src / mesa / shader / arbprogparse.c
index 6c6ec0736c5f762cad25c49a53c7674192de730a..b8e5e4bd8aef67d56b6dfeb34c329fc04d9bb6a8 100644 (file)
@@ -1494,12 +1494,13 @@ parse_attrib_binding(GLcontext * ctx, const GLubyte ** inst,
 #if 1
                /* hack for Warcraft (see bug 8060) */
                _mesa_warning(ctx, "Application error: vertex program uses 'vertex.weight' but GL_ARB_vertex_blend not supported.");
+               break;
 #else
                program_error(ctx, Program->Position,
                              "ARB_vertex_blend not supported");
+               return 1;
 #endif
             }
-            return 1;
 
          case VERTEX_ATTRIB_NORMAL:
             *inputReg = VERT_ATTRIB_NORMAL;