diff options
author | Brian <[email protected]> | 2008-03-27 16:04:20 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2008-03-27 16:04:20 -0600 |
commit | d46ac956db8e4156f67b83b171569cb05d15c263 (patch) | |
tree | bd6e3226dc277d012d84f7cf173cfb5b1e3383df /src | |
parent | 4adee848a6ce6cdf9873aa29d284db640c8ab606 (diff) |
raise GL_INVALID_OPERATION if glProgramString compilation fails
cherry-picked from master
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/shader/arbprogparse.c | 2 |
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; } |