summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-08-17 06:07:06 +0200
committerGitHub <noreply@github.com>2018-08-17 06:07:06 +0200
commit727136a9c941e11f98ada3a972e860d2d945d96f (patch)
tree6ee9b1dfda590eaa0cc8bf906c262a07ff82de9f /src/video_core/renderer_opengl/gl_shader_decompiler.cpp
parentMerge pull request #1087 from MerryMage/dynarmic (diff)
parentRasterizer: Implemented instanced rendering. (diff)
downloadyuzu-727136a9c941e11f98ada3a972e860d2d945d96f.tar
yuzu-727136a9c941e11f98ada3a972e860d2d945d96f.tar.gz
yuzu-727136a9c941e11f98ada3a972e860d2d945d96f.tar.bz2
yuzu-727136a9c941e11f98ada3a972e860d2d945d96f.tar.lz
yuzu-727136a9c941e11f98ada3a972e860d2d945d96f.tar.xz
yuzu-727136a9c941e11f98ada3a972e860d2d945d96f.tar.zst
yuzu-727136a9c941e11f98ada3a972e860d2d945d96f.zip
Diffstat (limited to 'src/video_core/renderer_opengl/gl_shader_decompiler.cpp')
-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 e0dfdbb9f..07006b55e 100644
--- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
@@ -541,7 +541,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)};