1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 18:53:28 +01:00

glsl: not all shaders write to col0 (#1884)

fix typo
This commit is contained in:
kd-11 2016-07-11 04:05:13 +03:00 committed by raven02
parent bbf7e6332c
commit 59df7e7104

View File

@ -272,15 +272,11 @@ rsx::complete_shader glsl_complete_shader(const rsx::decompiled_shader &shader,
if (state.ctrl & CELL_GCM_SHADER_CONTROL_32_BITS_EXPORTS)
{
if (0)
{
finalize += "\tocol = vec4(1.0, 0.0, 1.0, 1.0);\n";
}
else
if (shader.temporary_registers.find({ "r0" }) != shader.temporary_registers.end())
{
//Some shaders only write to gl_FragDepth and ignore color output
finalize += "\tocol = r0;\n";
}
if (shader.temporary_registers.find({ "r2" }) != shader.temporary_registers.end())
{
result.code += "layout(location = 1) out vec4 ocol1;\n";