From: Brian Date: Wed, 20 Feb 2008 15:53:41 +0000 (-0700) Subject: raise GL_INVALID_OPERATION if glProgramString compilation fails X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3075f267cd8ea3d434ecd33357c45cd4b37be151;p=mesa.git raise GL_INVALID_OPERATION if glProgramString compilation fails --- 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; }