diff options
author | Brian Paul <[email protected]> | 2009-09-15 09:47:35 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-09-15 09:47:35 -0600 |
commit | 41bbc8395111c6ef37e08a63ee58876d10a09e77 (patch) | |
tree | ff42e8359e3894b99da66599f9dc8ef44d9d3307 /progs | |
parent | c0cf9dc05e2d887ce6419e6cae1b3606a1779b3f (diff) | |
parent | 5d526ed21ac9f1ec9220c2adb4c905893eb9d990 (diff) |
Merge branch 'mesa_7_6_branch'
Diffstat (limited to 'progs')
-rw-r--r-- | progs/vp/vp-tris.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/progs/vp/vp-tris.c b/progs/vp/vp-tris.c index 97995accdd1..1356242d971 100644 --- a/progs/vp/vp-tris.c +++ b/progs/vp/vp-tris.c @@ -119,6 +119,12 @@ static void Init( void ) glBindProgramARB(GL_VERTEX_PROGRAM_ARB, prognum); glProgramStringARB(GL_VERTEX_PROGRAM_ARB, GL_PROGRAM_FORMAT_ASCII_ARB, sz, (const GLubyte *) buf); + if (glGetError()) { + printf("Program failed to compile:\n%s\n", buf); + printf("Error: %s\n", + (char *) glGetString(GL_PROGRAM_ERROR_STRING_ARB)); + exit(1); + } assert(glIsProgramARB(prognum)); } |