Fix shader code. Thanks Mesa!

On the other hand, the kind of shit fglrx
just lets through boggles the mind.
This commit is contained in:
Jonas Kulla 2013-10-02 15:00:17 +02:00
parent bb70c39811
commit 19c30e3ddd
5 changed files with 11 additions and 11 deletions

View file

@ -21,10 +21,10 @@ void main()
vec4 resFrag;
float ab = opacity;
const float as = srcFrag.a;
const float ad = dstFrag.a;
float as = srcFrag.a;
float ad = dstFrag.a;
const float at = ab*as;
float at = ab*as;
resFrag.a = at + ad - ad*at;
resFrag.rgb = mix(dstFrag.rgb, srcFrag.rgb, ab*as);