mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
[184/906] add a couple of macros to autotools to compile with uintrepid automake. remove array constructor so we don't have to depend on glsl #version 120.
This commit is contained in:
parent
ee0010f593
commit
30ab0747cc
1 changed files with 24 additions and 2 deletions
|
@ -197,7 +197,18 @@ const gchar *hconv9_fragment_source =
|
|||
"uniform float norm_offset;"
|
||||
"uniform float kernel[9];"
|
||||
"void main () {"
|
||||
" float offset[9] = float[9] (-4.0, -3.0, -2.0, -1.0, 0.0, 1.0, 2.0, 3.0, 4.0);"
|
||||
/* "float offset[9] = float[9] (-4.0, -3.0, -2.0, -1.0, 0.0, 1.0, 2.0, 3.0, 4.0);" */
|
||||
/* don't use array constructor so we don't have to depend on #version 120 */
|
||||
" float offset[9];"
|
||||
" offset[0] = -4.0;"
|
||||
" offset[1] = -3.0;"
|
||||
" offset[2] = -2.0;"
|
||||
" offset[3] = -1.0;"
|
||||
" offset[4] = 0.0;"
|
||||
" offset[5] = 1.0;"
|
||||
" offset[6] = 2.0;"
|
||||
" offset[7] = 3.0;"
|
||||
" offset[8] = 4.0;"
|
||||
" vec2 texturecoord = gl_TexCoord[0].st;"
|
||||
" int i;"
|
||||
" vec4 sum = vec4 (0.0);"
|
||||
|
@ -219,7 +230,18 @@ const gchar *vconv9_fragment_source =
|
|||
"uniform float norm_offset;"
|
||||
"uniform float kernel[9];"
|
||||
"void main () {"
|
||||
" float offset[9] = float[9] (-4.0, -3.0, -2.0, -1.0, 0.0, 1.0, 2.0, 3.0, 4.0);"
|
||||
/* "float offset[9] = float[9] (-4.0, -3.0, -2.0, -1.0, 0.0, 1.0, 2.0, 3.0, 4.0);" */
|
||||
/* don't use array constructor so we don't have to depend on #version 120 */
|
||||
" float offset[9];"
|
||||
" offset[0] = -4.0;"
|
||||
" offset[1] = -3.0;"
|
||||
" offset[2] = -2.0;"
|
||||
" offset[3] = -1.0;"
|
||||
" offset[4] = 0.0;"
|
||||
" offset[5] = 1.0;"
|
||||
" offset[6] = 2.0;"
|
||||
" offset[7] = 3.0;"
|
||||
" offset[8] = 4.0;"
|
||||
" vec2 texturecoord = gl_TexCoord[0].st;"
|
||||
" int i;"
|
||||
" vec4 sum = vec4 (0.0);"
|
||||
|
|
Loading…
Reference in a new issue