From 320394fbd1fd9fb989bb4ca0b2f1074f32d8963e Mon Sep 17 00:00:00 2001 From: Connor McLaughlin <stenzek@gmail.com> Date: Sun, 7 Mar 2021 02:55:37 +1000 Subject: [PATCH] ShaderGen: Fix GLSL emitting location = 00 --- src/core/shadergen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/shadergen.cpp b/src/core/shadergen.cpp index 641126773..3e4589ce9 100644 --- a/src/core/shadergen.cpp +++ b/src/core/shadergen.cpp @@ -477,7 +477,7 @@ void ShaderGen::DeclareFragmentEntryPoint( { Assert(num_color_outputs <= 1); for (u32 i = 0; i < num_color_outputs; i++) - ss << "layout(location = 0" << i << ") out float4 o_col" << i << ";\n"; + ss << "layout(location = " << i << ") out float4 o_col" << i << ";\n"; } } else