aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/linker.cpp
diff options
context:
space:
mode:
authorAndres Gomez <[email protected]>2018-08-01 13:22:00 +0300
committerAndres Gomez <[email protected]>2018-08-02 10:06:44 +0300
commit9d220fa950850d751fbbbc2cd4ec24d024fcad70 (patch)
tree267eb39384acf8649af9f5d3a7bb296248be8ab5 /src/compiler/glsl/linker.cpp
parent8fcdb71d8c9e6a0d9d9b70550bb764b654377714 (diff)
glsl: use util_snprintf()
Instead of plain snprintf(). To fix the MSVC 2013 build. Fixes: 6ff0c6f4ebc ("gallium: move ddebug, noop, rbug, trace to auxiliary to improve build times") Cc: Marek Olšák <[email protected]> Cc: Brian Paul <[email protected]> Cc: Roland Scheidegger <[email protected]> Signed-off-by: Andres Gomez <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/compiler/glsl/linker.cpp')
-rw-r--r--src/compiler/glsl/linker.cpp5
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.