projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4adee84
)
raise GL_INVALID_OPERATION if glProgramString compilation fails
author
Brian
<brian.paul@tungstengraphics.com>
Thu, 27 Mar 2008 22:04:20 +0000
(16:04 -0600)
committer
Brian
<brian.paul@tungstengraphics.com>
Thu, 27 Mar 2008 22:04:20 +0000
(16:04 -0600)
cherry-picked from master
src/mesa/shader/arbprogparse.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/arbprogparse.c
b/src/mesa/shader/arbprogparse.c
index 2fd356efad1b1ee6b2df4fb908e22d33259e451f..ac4da35d12673c1fbb13b83bd149ed27e1fb7c4c 100644
(file)
--- 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;
}