summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader/glsl_decompiler.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2018-12-21 07:39:46 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-01-15 21:54:52 +0100
commit21aff36459f73ddb96a7909b6094e4f9c5b9c3fb (patch)
tree35cf1ee84b320a77029c79093f911a975f71c9f9 /src/video_core/shader/glsl_decompiler.cpp
parentshader_ir: Fixup file inclusions and clang-format (diff)
downloadyuzu-21aff36459f73ddb96a7909b6094e4f9c5b9c3fb.tar
yuzu-21aff36459f73ddb96a7909b6094e4f9c5b9c3fb.tar.gz
yuzu-21aff36459f73ddb96a7909b6094e4f9c5b9c3fb.tar.bz2
yuzu-21aff36459f73ddb96a7909b6094e4f9c5b9c3fb.tar.lz
yuzu-21aff36459f73ddb96a7909b6094e4f9c5b9c3fb.tar.xz
yuzu-21aff36459f73ddb96a7909b6094e4f9c5b9c3fb.tar.zst
yuzu-21aff36459f73ddb96a7909b6094e4f9c5b9c3fb.zip
Diffstat (limited to 'src/video_core/shader/glsl_decompiler.cpp')
-rw-r--r--src/video_core/shader/glsl_decompiler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/shader/glsl_decompiler.cpp b/src/video_core/shader/glsl_decompiler.cpp
index 46a48652d..86a29f812 100644
--- a/src/video_core/shader/glsl_decompiler.cpp
+++ b/src/video_core/shader/glsl_decompiler.cpp
@@ -1354,7 +1354,7 @@ private:
}
std::string GetSampler(const Sampler& sampler) const {
- return GetDeclarationWithSuffix(sampler.GetIndex(), "sampler");
+ return GetDeclarationWithSuffix(static_cast<u32>(sampler.GetIndex()), "sampler");
}
std::string GetDeclarationWithSuffix(u32 index, const std::string& name) const {