summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/arbprogparse.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2008-03-27 16:04:20 -0600
committerBrian <[email protected]>2008-03-27 16:04:20 -0600
commitd46ac956db8e4156f67b83b171569cb05d15c263 (patch)
treebd6e3226dc277d012d84f7cf173cfb5b1e3383df /src/mesa/shader/arbprogparse.c
parent4adee848a6ce6cdf9873aa29d284db640c8ab606 (diff)
raise GL_INVALID_OPERATION if glProgramString compilation fails
cherry-picked from master
Diffstat (limited to 'src/mesa/shader/arbprogparse.c')
-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 2fd356efad1..ac4da35d126 100644
--- a/src/mesa/shader/arbprogparse.c
+++ b/src/mesa/shader/arbprogparse.c
@@ -3983,7 +3983,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;
}