ShaderGen: Fix GLSL emitting location = 00
This commit is contained in:
parent
6bbb1128b6
commit
320394fbd1
|
@ -477,7 +477,7 @@ void ShaderGen::DeclareFragmentEntryPoint(
|
||||||
{
|
{
|
||||||
Assert(num_color_outputs <= 1);
|
Assert(num_color_outputs <= 1);
|
||||||
for (u32 i = 0; i < num_color_outputs; i++)
|
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
|
else
|
||||||
|
|
Loading…
Reference in New Issue