summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-04-05 04:36:19 +0200
committerGitHub <noreply@github.com>2019-04-05 04:36:19 +0200
commitf7d6e0868853208ceb0bd3da9ed7266efff59bea (patch)
treed82450778b17d32657432bbdebf62afe3affefc5 /src
parentMerge pull request #2331 from lioncash/cache (diff)
parentgl_shader_decompiler: Fix TXQ types (diff)
downloadyuzu-f7d6e0868853208ceb0bd3da9ed7266efff59bea.tar
yuzu-f7d6e0868853208ceb0bd3da9ed7266efff59bea.tar.gz
yuzu-f7d6e0868853208ceb0bd3da9ed7266efff59bea.tar.bz2
yuzu-f7d6e0868853208ceb0bd3da9ed7266efff59bea.tar.lz
yuzu-f7d6e0868853208ceb0bd3da9ed7266efff59bea.tar.xz
yuzu-f7d6e0868853208ceb0bd3da9ed7266efff59bea.tar.zst
yuzu-f7d6e0868853208ceb0bd3da9ed7266efff59bea.zip
Diffstat (limited to 'src')
-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";