summaryrefslogtreecommitdiffstats
path: root/progs/vp/vp-tris.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-09-15 09:45:18 -0600
committerBrian Paul <[email protected]>2009-09-15 09:45:18 -0600
commit5d526ed21ac9f1ec9220c2adb4c905893eb9d990 (patch)
tree2e9c6b0794d903aa9c137d591f956619a51608d7 /progs/vp/vp-tris.c
parent2b992dc327e02a412c0cc8c5d015ac534114848c (diff)
parent799631acb18be93afab29e27241cde3780672e98 (diff)
Merge branch 'mesa_7_5_branch' into mesa_7_6_branch
Diffstat (limited to 'progs/vp/vp-tris.c')
-rw-r--r--progs/vp/vp-tris.c6
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));
}