diff options
author | Subv <subv2112@gmail.com> | 2018-08-12 02:21:31 +0200 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2018-08-15 05:25:07 +0200 |
commit | c5284efd4f04bca05b1f5c61dce59090a7edf61e (patch) | |
tree | a4bf294444c67058812f010d01a60e44aa1c80b6 /src/video_core/renderer_opengl/gl_shader_decompiler.cpp | |
parent | Merge pull request #1069 from bunnei/vtx-sz (diff) | |
download | yuzu-c5284efd4f04bca05b1f5c61dce59090a7edf61e.tar yuzu-c5284efd4f04bca05b1f5c61dce59090a7edf61e.tar.gz yuzu-c5284efd4f04bca05b1f5c61dce59090a7edf61e.tar.bz2 yuzu-c5284efd4f04bca05b1f5c61dce59090a7edf61e.tar.lz yuzu-c5284efd4f04bca05b1f5c61dce59090a7edf61e.tar.xz yuzu-c5284efd4f04bca05b1f5c61dce59090a7edf61e.tar.zst yuzu-c5284efd4f04bca05b1f5c61dce59090a7edf61e.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 2 |
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 dabf98b74..5a05c79ef 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, uintBitsToFloat(gl_InstanceID), uintBitsToFloat(gl_VertexID))"; + return "vec4(0, 0, uintBitsToFloat(instance_id.x), uintBitsToFloat(gl_VertexID))"; default: const u32 index{static_cast<u32>(attribute) - static_cast<u32>(Attribute::Index::Attribute_0)}; |