diff options
Diffstat (limited to 'src/compiler/glsl/linker.cpp')
-rw-r--r-- | src/compiler/glsl/linker.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/compiler/glsl/linker.cpp b/src/compiler/glsl/linker.cpp index 6a9d19e8695..3ce78fe6428 100644 --- a/src/compiler/glsl/linker.cpp +++ b/src/compiler/glsl/linker.cpp @@ -83,6 +83,7 @@ #include "ir_uniform.h" #include "builtin_functions.h" #include "shader_cache.h" +#include "util/u_string.h" #include "main/imports.h" #include "main/shaderobj.h" @@ -4119,8 +4120,8 @@ is_top_level_shader_storage_block_member(const char* name, return false; } - snprintf(full_instanced_name, name_length, "%s.%s", - interface_name, field_name); + util_snprintf(full_instanced_name, name_length, "%s.%s", + interface_name, field_name); /* Check if its top-level shader storage block member of an * instanced interface block, or of a unnamed interface block. |