From 08a7f56c6ad8046e80d117ab1af3c46134366fbd Mon Sep 17 00:00:00 2001 From: Brian Date: Wed, 20 Feb 2008 09:00:49 -0700 Subject: [PATCH] raise GL_INVALID_OPERATION if glProgramString compilation fails cherry picked from master. --- src/mesa/shader/arbprogparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }