Attempt to fix T44056, dof high quality shader error in ATI cards.

ATI driver does not like declaration of gl_FragColor and glFragData in
the same source file (even though only one of the two is ever
referenced), just use one of the two.
This commit is contained in:
Antonis Ryakiotakis 2015-03-30 14:44:31 +02:00
parent 79a68617b3
commit c6ce8200dd
Notes: blender-bot 2023-02-14 10:04:50 +01:00
Referenced by issue #44056, High Quality DOF Glitches when GFX Card does not Support it- ATI Cards
1 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ void accumulate_pass(void) {
if (dot(particlecoord, particlecoord) > r * r)
discard;
gl_FragColor = color;
gl_FragData[0] = color;
}
#define MERGE_THRESHOLD 4.0
@ -151,7 +151,7 @@ void final_pass(void) {
finalcolor = mix(finalcolor, nearcolor, nearweight / totalweight);
}
gl_FragColor = finalcolor;
gl_FragData[0] = finalcolor;
}
void main()