mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 08:11:16 +00:00
eglglessink: Refactor REORDER shader.
Avoid unneededly calling texture2D() 3 consecutive times.
This commit is contained in:
parent
c91238a2af
commit
1eef329725
1 changed files with 2 additions and 5 deletions
|
@ -161,11 +161,8 @@ static const char *frag_REORDER_prog = {
|
|||
"uniform sampler2D tex;"
|
||||
"void main(void)"
|
||||
"{"
|
||||
" float r, g, b;"
|
||||
" r = texture2D(tex, opos).%c;"
|
||||
" g = texture2D(tex, opos).%c;"
|
||||
" b = texture2D(tex, opos).%c;"
|
||||
" gl_FragColor = vec4(r, g, b, 1.0);"
|
||||
" vec4 t = texture2D(tex, opos);"
|
||||
" gl_FragColor = vec4(t.%c, t.%c, t.%c, 1.0);"
|
||||
"}"
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue