Commit dce22e69 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

opengl: stick to single precision

parent ae8de060
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment