VirtualBox

Ignore:
Timestamp:
Sep 9, 2009 9:26:01 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
52139
Message:

fideo hw accel: fix for ATI + small optimizations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/shaders/ckeyDst.c

    r22776 r22883  
    22uniform sampler2DRect uDstTex;
    33uniform vec4 uDstClr;
    4 int vboxCKeyDst(void)
     4void vboxCKeyDst(void)
    55{
    6     vec4 dstClr = texture2DRect(uDstTex, vec2(gl_TexCoord[0]));
     6    vec4 dstClr = texture2DRect(uDstTex, vec2(gl_TexCoord[1]));
    77    vec3 difClr = dstClr.rgb - uDstClr.rgb;
    88    if(any(greaterThan(difClr, vec3(0.01, 0.01, 0.01)))
    99        || any(lessThan(difClr, vec3(-0.01, -0.01, -0.01))))
    1010            discard;
    11     return 1;
    1211}
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette