raise GL_INVALID_OPERATION if glProgramString compilation fails
authorBrian <brian.paul@tungstengraphics.com>
Thu, 27 Mar 2008 22:04:20 +0000 (16:04 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Thu, 27 Mar 2008 22:04:20 +0000 (16:04 -0600)
cherry-picked from master

src/mesa/shader/arbprogparse.c

index 2fd356efad1b1ee6b2df4fb908e22d33259e451f..ac4da35d12673c1fbb13b83bd149ed27e1fb7c4c 100644 (file)
@@ -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;
    }