Browse Source

util: fix MSVC double/float conversion warning in u_format_r11g11b10f.h

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
tags/gles3-fmt-v1
Brian Paul 13 years ago
parent
commit
a0785544e3
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/gallium/auxiliary/util/u_format_r11g11b10f.h

+ 1
- 1
src/gallium/auxiliary/util/u_format_r11g11b10f.h View File

@@ -205,7 +205,7 @@ static INLINE float uf10_to_f32(uint16_t val)
float scale, decimal;
exponent -= 15;
if (exponent < 0) {
scale = 1.0 / (1 << -exponent);
scale = 1.0f / (1 << -exponent);
}
else {
scale = (float) (1 << exponent);

Loading…
Cancel
Save