mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +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
5c07218bd2
commit
40422d03c6
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