mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-29 13:20:35 +00:00
Round to a power of two
This commit is contained in:
parent
dd4d8b2649
commit
b5c876299d
@ -11,7 +11,7 @@ namespace
|
||||
// Round value to prevent precision issues
|
||||
void truncate(float& value)
|
||||
{
|
||||
value = std::roundf(value * 1000.f) / 1000.f;
|
||||
value = std::roundf(value * 1024.f) / 1024.f;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user