mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 21:28:55 +00:00
Bug 1038402 - Webgl half float support used wrong shift value when converting from packed float to regular float. r=kamidphish
This commit is contained in:
parent
3bd3d5624a
commit
00422aa99b
@ -120,7 +120,7 @@ unpackFromFloat16(uint16_t v)
|
||||
return f32Value;
|
||||
}
|
||||
|
||||
f32Bits |= uint32_t(exp + (-15 + 127)) << 10;
|
||||
f32Bits |= uint32_t(exp + (-15 + 127)) << 23;
|
||||
f32Bits |= uint32_t(v & 0x03FF) << 13;
|
||||
|
||||
return f32Value;
|
||||
|
Loading…
x
Reference in New Issue
Block a user