raise GL_INVALID_OPERATION if glProgramString compilation fails
authorBrian <brian.paul@tungstengraphics.com>
Wed, 20 Feb 2008 15:53:41 +0000 (08:53 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Wed, 20 Feb 2008 15:53:41 +0000 (08:53 -0700)
src/mesa/shader/arbprogparse.c

index 705507a5246d7ba1bfc4d31fb3b279a1fc006c95..ead0580ed43421e29be9782baa6691f9298606e6 100644 (file)
@@ -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;
    }