mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 05:16:05 +00:00
gleffects: Fix fisheye shader - pass float to sqrt
On OSX passing literal int to sqrt() in GLSL results in error. https://bugzilla.gnome.org/show_bug.cgi?id=746209
This commit is contained in:
parent
85d9185b0c
commit
eb326ba4c2
1 changed files with 1 additions and 1 deletions
|
@ -192,7 +192,7 @@ const gchar *fisheye_fragment_source_opengl =
|
|||
" vec2 normcoord;"
|
||||
" normcoord = texturecoord - 0.5;"
|
||||
" float r = length (normcoord);"
|
||||
" normcoord *= r * sqrt(2);"
|
||||
" normcoord *= r * sqrt(2.0);"
|
||||
" texturecoord = normcoord + 0.5;"
|
||||
" vec4 color = texture2D (tex, texturecoord);"
|
||||
" gl_FragColor = color;"
|
||||
|
|
Loading…
Reference in a new issue