From: Brian Date: Thu, 27 Mar 2008 22:04:20 +0000 (-0600) Subject: raise GL_INVALID_OPERATION if glProgramString compilation fails X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d46ac956db8e4156f67b83b171569cb05d15c263;p=mesa.git raise GL_INVALID_OPERATION if glProgramString compilation fails cherry-picked from master --- 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; }