summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian <[email protected]>2008-02-20 09:00:49 -0700
committerBrian <[email protected]>2008-02-20 09:00:49 -0700
commit08a7f56c6ad8046e80d117ab1af3c46134366fbd (patch)
tree231a7c680836bf97fa68b540865005a5b91804d0 /src
parent7916f2b4aaaeb2107abbfa1342a8b886f9a1e8ca (diff)
raise GL_INVALID_OPERATION if glProgramString compilation fails
cherry picked from master.
Diffstat (limited to 'src')
-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 e7875242821..4de8ccf0873 100644
--- a/src/mesa/shader/arbprogparse.c
+++ b/src/mesa/shader/arbprogparse.c
@@ -3916,7 +3916,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;
}