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:
parent
bb70c39811
commit
19c30e3ddd
5 changed files with 11 additions and 11 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue