Fix T78653 Workbench: Broken Depth of Field in Viewport (Mac OSX)

The output layout was wrong and it's a mistery why it works on most
implementations since it's clearly a wrong usage.

Thanks @sebbas for helping narrowing down the issue.
This commit is contained in:
Clément Foucault 2020-09-16 15:17:11 +02:00
parent fa2ef64d96
commit fa81e36f65
Notes: blender-bot 2023-05-22 12:40:41 +02:00
Referenced by issue #78653, Blender 2.83 broken Depth of Field in Viewport (Mac OSX)
Referenced by issue #77348, Blender LTS: Maintenance Task 2.83
1 changed files with 2 additions and 2 deletions

View File

@ -390,8 +390,8 @@ void main()
*/
#ifdef RESOLVE
layout(location = 0) out vec4 finalColorAdd;
layout(location = 1) out vec4 finalColorMul;
layout(location = 0, index = 0) out vec4 finalColorAdd;
layout(location = 0, index = 1) out vec4 finalColorMul;
void main()
{