From 3075f267cd8ea3d434ecd33357c45cd4b37be151 Mon Sep 17 00:00:00 2001 From: Brian Date: Wed, 20 Feb 2008 08:53:41 -0700 Subject: raise GL_INVALID_OPERATION if glProgramString compilation fails --- src/mesa/shader/arbprogparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa') 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; } -- cgit v1.2.3