mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
[436/906] gleffectssources: fix some warnings from msvc9
This commit is contained in:
parent
a1cd1cdc69
commit
28a11181c8
2 changed files with 3 additions and 3 deletions
|
@ -44,10 +44,10 @@ fill_gaussian_kernel (float *kernel, int size, float sigma)
|
||||||
g_return_if_fail ((size % 2) != 0);
|
g_return_if_fail ((size % 2) != 0);
|
||||||
|
|
||||||
sum = 0.0;
|
sum = 0.0;
|
||||||
l = (size - 1) / 2.0;
|
l = (size - 1) / 2;
|
||||||
|
|
||||||
for (i = 0; i < size; i++) {
|
for (i = 0; i < size; i++) {
|
||||||
kernel[i] = exp (-pow ((i - l), 2.0) / (2 * sigma));
|
kernel[i] = expf (-pow ((i - l), 2.0) / (2 * sigma));
|
||||||
sum += kernel[i];
|
sum += kernel[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -226,7 +226,7 @@ gst_gl_filter_reflected_screen_draw_floor ()
|
||||||
gluQuadricTexture (q, GL_FALSE);
|
gluQuadricTexture (q, GL_FALSE);
|
||||||
|
|
||||||
//drawing the disk. The texture are mapped thanks to the parameter we gave to the GLUquadric q
|
//drawing the disk. The texture are mapped thanks to the parameter we gave to the GLUquadric q
|
||||||
gluDisk (q, 0.0, 2.0, 50.0, 1.0);
|
gluDisk (q, 0.0, 2.0, 50, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
//opengl scene, params: input texture (not the output filter->texture)
|
//opengl scene, params: input texture (not the output filter->texture)
|
||||||
|
|
Loading…
Reference in a new issue