mirror of
https://github.com/g-truc/glm.git
synced 2024-12-02 04:34:34 +00:00
Fixed higherMultiple for half types
This commit is contained in:
parent
166c75afec
commit
06f1deafc8
@ -36,7 +36,7 @@ GLM_FUNC_QUALIFIER detail::thalf higherMultiple
|
|||||||
float Source = SourceH.toFloat();
|
float Source = SourceH.toFloat();
|
||||||
float Multiple = MultipleH.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);
|
return detail::thalf(Tmp ? Source + Multiple - float(Tmp) : Source);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user