From f5658a9fdab5e4511a9204a4747b7f733f67d04f Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Wed, 18 Mar 2020 01:28:41 -0300 Subject: gl_shader_decompiler: Don't redeclare gl_VertexID and gl_InstanceID --- src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src') diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp index f53d7021e..e6ae8041b 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp @@ -639,14 +639,6 @@ private: code.AddLine("float gl_PointSize;"); } - if (ir.UsesInstanceId()) { - code.AddLine("int gl_InstanceID;"); - } - - if (ir.UsesVertexId()) { - code.AddLine("int gl_VertexID;"); - } - if (ir.UsesLegacyVaryings()) { code.AddLine("vec4 gl_TexCoord[8];"); code.AddLine("vec4 gl_FrontColor;"); -- cgit v1.2.3