summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2006-09-06 05:03:47 +0000
committerBrian Paul <[email protected]>2006-09-06 05:03:47 +0000
commitd9aebd84980c58df9767f2b01fc7b8ec7620b161 (patch)
treeb2d888a97d69c0d32504f415863a986335c3a256 /src/mesa
parent4a901667e5f397278bf14603d17588a0df882744 (diff)
for VERTEX_ATTRIB_WEIGHT, use break, not return
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/shader/arbprogparse.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/shader/arbprogparse.c b/src/mesa/shader/arbprogparse.c
index 6c6ec0736c5..b8e5e4bd8ae 100644
--- a/src/mesa/shader/arbprogparse.c
+++ b/src/mesa/shader/arbprogparse.c
@@ -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;