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:
Antony Riakiotakis 2015-03-30 14:44:31 +02:00
parent 79a68617b3
commit c6ce8200dd

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