summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/slang/slang_link.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-12-30 18:01:15 -0700
committerBrian Paul <[email protected]>2008-12-30 18:01:15 -0700
commitc789bd376f09c3b61617aeef6f5adbba2c541178 (patch)
treeb50aba807e609ef6084e52d814370a2cc761f1c8 /src/mesa/shader/slang/slang_link.c
parent369115e4c7a2985d880951fd8248deefa92025dd (diff)
parente8d7db31e2a6784c765911233cb3d888f612837f (diff)
Merge commit 'origin/master' into gallium-0.2
Conflicts: src/mesa/main/config.h
Diffstat (limited to 'src/mesa/shader/slang/slang_link.c')
-rw-r--r--src/mesa/shader/slang/slang_link.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/shader/slang/slang_link.c b/src/mesa/shader/slang/slang_link.c
index 3e97c8672b6..1b63659cfdb 100644
--- a/src/mesa/shader/slang/slang_link.c
+++ b/src/mesa/shader/slang/slang_link.c
@@ -240,7 +240,10 @@ link_uniform_vars(struct gl_shader_program *shProg,
GLuint sampNum = *numSamplers;
GLuint oldSampNum = (GLuint) prog->Parameters->ParameterValues[i][0];
if (oldSampNum >= MAX_SAMPLERS) {
- link_error(shProg, "Too many texture samplers");
+ char s[100];
+ sprintf(s, "Too many texture samplers (%u, max is %u)",
+ oldSampNum + 1, MAX_SAMPLERS);
+ link_error(shProg, s);
return GL_FALSE;
}
samplerMap[oldSampNum] = sampNum;