aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/shader
diff options
context:
space:
mode:
authorBrian <[email protected]>2008-02-20 08:53:41 -0700
committerBrian <[email protected]>2008-02-20 08:53:41 -0700
commit3075f267cd8ea3d434ecd33357c45cd4b37be151 (patch)
treed1f0b3080079167fd613969610955205d3ee2b9a /src/mesa/shader
parenta3a480979b0d8688285d6b8632e02dd6d37071a3 (diff)
raise GL_INVALID_OPERATION if glProgramString compilation fails
Diffstat (limited to 'src/mesa/shader')
-rw-r--r--src/mesa/shader/arbprogparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/arbprogparse.c b/src/mesa/shader/arbprogparse.c
index 705507a5246..ead0580ed43 100644
--- a/src/mesa/shader/arbprogparse.c
+++ b/src/mesa/shader/arbprogparse.c
@@ -3964,7 +3964,7 @@ _mesa_parse_arb_vertex_program(GLcontext *ctx, GLenum target,
ASSERT(target == GL_VERTEX_PROGRAM_ARB);
if (!_mesa_parse_arb_program(ctx, target, (const GLubyte*) str, len, &ap)) {
- /* Error in the program. Just return. */
+ _mesa_error(ctx, GL_INVALID_OPERATION, "glProgramString(bad program)");
return;
}