From f96c7371759e776494a4ad6ca20ad2096bc02363 Mon Sep 17 00:00:00 2001 From: Spoike Date: Mon, 14 May 2012 15:07:03 +0000 Subject: [PATCH] Slightly more verbose output for glsl linker errors. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4052 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_vidcommon.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/engine/gl/gl_vidcommon.c b/engine/gl/gl_vidcommon.c index 94ec61ac8..631ee4279 100644 --- a/engine/gl/gl_vidcommon.c +++ b/engine/gl/gl_vidcommon.c @@ -1230,11 +1230,11 @@ GLhandleARB GLSlang_CreateShader (char *name, int ver, char **precompilerconstan return shader; } -GLhandleARB GLSlang_CreateProgramObject (GLhandleARB vert, GLhandleARB frag, qboolean silent) +GLhandleARB GLSlang_CreateProgramObject (char *name, GLhandleARB vert, GLhandleARB frag, qboolean silent) { GLhandleARB program; GLint linked; - char str[1024]; + char str[2048]; program = qglCreateProgramObjectARB(); qglAttachObjectARB(program, vert); @@ -1260,7 +1260,7 @@ GLhandleARB GLSlang_CreateProgramObject (GLhandleARB vert, GLhandleARB frag, qbo if (!silent) { qglGetProgramInfoLog_(program, sizeof(str), NULL, str); - Con_Printf("Program link error: %s\n", str); + Con_Printf("Program link error on glsl program %s:\n%s\n", name, str); } qglDeleteProgramObject_(program); @@ -1289,7 +1289,7 @@ GLhandleARB GLSlang_CreateProgram(char *name, int ver, char **precompilerconstan if (!vs || !fs) handle = 0; else - handle = GLSlang_CreateProgramObject(vs, fs, silent); + handle = GLSlang_CreateProgramObject(name, vs, fs, silent); //delete ignores 0s. qglDeleteShaderObject_(vs); qglDeleteShaderObject_(fs);