vo_gl: make shader code generation easier to deal with
commitb65ee1f5ac0b8634b6b79c81deeea86ef39c4069
authorwm4 <wm4@mplayer2.org>
Tue, 8 Nov 2011 00:34:40 +0000 (8 01:34 +0100)
committerUoti Urpala <uau@mplayer2.org>
Fri, 25 Nov 2011 21:59:49 +0000 (25 23:59 +0200)
tree073155324e285c764ae07532f5ab34a0bb25e5bc
parent8d6fc26bb982c5ecb7dbe4c20d51dec47f82abbf
vo_gl: make shader code generation easier to deal with

The shader code was generated from very long strings with lots of
format specifiers with snprintf calls. It was almost impossible to
quickly tell what variables were inserted where in the shader. Make
this more readable by implementing a kind of simple variable
substitution, which allows replacing the format specifiers in the code
templates with with variable names.
libvo/gl_common.c