summaryrefslogtreecommitdiffstats
path: root/src/util/format_r11g11b10f.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/format_r11g11b10f.h')
-rw-r--r--src/util/format_r11g11b10f.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/format_r11g11b10f.h b/src/util/format_r11g11b10f.h
index c9e967cf31a..f6cd4ac696a 100644
--- a/src/util/format_r11g11b10f.h
+++ b/src/util/format_r11g11b10f.h
@@ -191,7 +191,7 @@ static inline float uf10_to_f32(uint16_t val)
if (exponent == 0) {
if (mantissa != 0) {
- const float scale = 1.0 / (1 << 20);
+ const float scale = 1.0 / (1 << 19);
f32.f = scale * mantissa;
}
} else if (exponent == 31) {