mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 03:25:16 +00:00
parent
bbf7e6332c
commit
59df7e7104
1 changed files with 2 additions and 6 deletions
|
@ -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…
Add table
Reference in a new issue