summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-06-10 20:50:19 +0200
committerSubv <subv2112@gmail.com>2018-06-10 20:50:19 +0200
commit004b1b38302dd81ca414d838b876cfdf55b3f3b8 (patch)
treee5a8f4830a7fed4589a04eb5bf67bcbfb96e47a4 /src/video_core/renderer_opengl/gl_shader_decompiler.cpp
parentMerge pull request #553 from Subv/iset (diff)
downloadyuzu-004b1b38302dd81ca414d838b876cfdf55b3f3b8.tar
yuzu-004b1b38302dd81ca414d838b876cfdf55b3f3b8.tar.gz
yuzu-004b1b38302dd81ca414d838b876cfdf55b3f3b8.tar.bz2
yuzu-004b1b38302dd81ca414d838b876cfdf55b3f3b8.tar.lz
yuzu-004b1b38302dd81ca414d838b876cfdf55b3f3b8.tar.xz
yuzu-004b1b38302dd81ca414d838b876cfdf55b3f3b8.tar.zst
yuzu-004b1b38302dd81ca414d838b876cfdf55b3f3b8.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_decompiler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
index 8521be4a1..67726e7c6 100644
--- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
@@ -538,7 +538,7 @@ private:
// vertex shader, and what's the value of the fourth element when inside a Tess Eval
// shader.
ASSERT(stage == Maxwell3D::Regs::ShaderStage::Vertex);
- return "vec4(0, 0, gl_InstanceID, gl_VertexID)";
+ return "vec4(0, 0, uintBitsToFloat(gl_InstanceID), uintBitsToFloat(gl_VertexID))";
default:
const u32 index{static_cast<u32>(attribute) -
static_cast<u32>(Attribute::Index::Attribute_0)};