mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 18:53:28 +01:00
parent
bbf7e6332c
commit
59df7e7104
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user