eglglessink: GLSL: Save one extra texture lookup

This commit is contained in:
Reynaldo H. Verdejo Pinochet 2012-10-10 12:26:04 -03:00 committed by Sebastian Dröge
parent 0ed02803f7
commit af009b7de7

View file

@ -294,8 +294,7 @@ static const char *frag_NV12_NV21_prog = {
" float r,g,b;"
" vec3 yuv;"
" yuv.x=texture2D(Ytex,opos).r;"
" yuv.y=texture2D(UVtex,opos).%c;"
" yuv.z=texture2D(UVtex,opos).%c;"
" yuv.yz=texture2D(UVtex,opos).%c%c;"
" yuv += offset;"
" r = dot(yuv, rcoeff);"
" g = dot(yuv, gcoeff);"