[vlc-commits] opengl: stick to single precision

Rémi Denis-Courmont git at videolan.org
Wed Aug 13 20:29:15 CEST 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Aug 13 21:21:29 2014 +0300| [dce22e6988beba8949e2973de710e7c272579be3] | committer: Rémi Denis-Courmont

opengl: stick to single precision

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dce22e6988beba8949e2973de710e7c272579be3
---

 modules/video_output/opengl.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/video_output/opengl.c b/modules/video_output/opengl.c
index 35c4779..ceb60dc 100644
--- a/modules/video_output/opengl.c
+++ b/modules/video_output/opengl.c
@@ -309,12 +309,12 @@ static void BuildYUVFragmentShader(vout_display_opengl_t *vgl,
         code = NULL;
 
     for (int i = 0; i < 4; i++) {
-        float correction = i < 3 ? yuv_range_correction : 1.0;
+        float correction = i < 3 ? yuv_range_correction : 1.f;
         /* We place coefficient values for coefficient[4] in one array from matrix values.
            Notice that we fill values from top down instead of left to right.*/
         for (int j = 0; j < 4; j++)
             local_value[*local_count + i*4+j] = j < 3 ? correction * matrix[j*4+i]
-                                                      : 0.0 ;
+                                                      : 0.f;
     }
     (*local_count) += 4;
 



More information about the vlc-commits mailing list