summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-04-05 01:07:11 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-04-05 01:07:11 +0200
commit88a3c05b7bad050d4e24c299425a6c480d1facac (patch)
treea3c1c27dc03f31b0cc4b0632f13522cf606ce025
parentMerge pull request #2294 from lioncash/fatal (diff)
downloadyuzu-88a3c05b7bad050d4e24c299425a6c480d1facac.tar
yuzu-88a3c05b7bad050d4e24c299425a6c480d1facac.tar.gz
yuzu-88a3c05b7bad050d4e24c299425a6c480d1facac.tar.bz2
yuzu-88a3c05b7bad050d4e24c299425a6c480d1facac.tar.lz
yuzu-88a3c05b7bad050d4e24c299425a6c480d1facac.tar.xz
yuzu-88a3c05b7bad050d4e24c299425a6c480d1facac.tar.zst
yuzu-88a3c05b7bad050d4e24c299425a6c480d1facac.zip
-rw-r--r--src/video_core/renderer_opengl/gl_shader_decompiler.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
index 11d1169f0..7300a4037 100644
--- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
@@ -1196,11 +1196,12 @@ private:
switch (meta->element) {
case 0:
case 1:
- return "textureSize(" + sampler + ", " + lod + ')' + GetSwizzle(meta->element);
+ return "itof(int(textureSize(" + sampler + ", " + lod + ')' +
+ GetSwizzle(meta->element) + "))";
case 2:
return "0";
case 3:
- return "textureQueryLevels(" + sampler + ')';
+ return "itof(textureQueryLevels(" + sampler + "))";
}
UNREACHABLE();
return "0";