projects
/
platform
/
upstream
/
gst-plugins-bad.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c07218
)
gleffects: Fix fisheye shader - pass float to sqrt
author
Michał Dębski
<debski.mi.zd@gmail.com>
Sat, 21 Mar 2015 22:21:13 +0000
(23:21 +0100)
committer
Julien Isorce
<j.isorce@samsung.com>
Tue, 21 Apr 2015 10:56:16 +0000
(11:56 +0100)
On OSX passing literal int to sqrt() in GLSL results in error.
https://bugzilla.gnome.org/show_bug.cgi?id=746209
ext/gl/effects/gstgleffectssources.c
patch
|
blob
|
history
diff --git
a/ext/gl/effects/gstgleffectssources.c
b/ext/gl/effects/gstgleffectssources.c
index
6a86701
..
e94fad8
100644
(file)
--- a/
ext/gl/effects/gstgleffectssources.c
+++ b/
ext/gl/effects/gstgleffectssources.c
@@
-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;"