mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 14:50:10 +01:00
glsl: make linker error message more informative
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
1bba29ed40
commit
b8f63b3c10
1 changed files with 3 additions and 2 deletions
|
|
@ -2880,8 +2880,9 @@ check_image_resources(struct gl_context *ctx, struct gl_shader_program *prog)
|
|||
|
||||
if (sh) {
|
||||
if (sh->NumImages > ctx->Const.Program[i].MaxImageUniforms)
|
||||
linker_error(prog, "Too many %s shader image uniforms\n",
|
||||
_mesa_shader_stage_to_string(i));
|
||||
linker_error(prog, "Too many %s shader image uniforms (%u > %u)\n",
|
||||
_mesa_shader_stage_to_string(i), sh->NumImages,
|
||||
ctx->Const.Program[i].MaxImageUniforms);
|
||||
|
||||
total_image_units += sh->NumImages;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue