mirror of
https://github.com/g-truc/glm.git
synced 2025-04-14 01:00:37 +00:00
Fixed higherMultiple for half types
This commit is contained in:
parent
166c75afec
commit
06f1deafc8
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ GLM_FUNC_QUALIFIER detail::thalf higherMultiple
|
|||
float Source = SourceH.toFloat();
|
||||
float Multiple = MultipleH.toFloat();
|
||||
|
||||
int Tmp = int(float(Source)) % int();
|
||||
int Tmp = int(float(Source)) % int(Multiple);
|
||||
return detail::thalf(Tmp ? Source + Multiple - float(Tmp) : Source);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue