From 06f1deafc8f45cbd5ae83ff80c4fdac9faf2e371 Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Tue, 20 Sep 2011 00:44:08 +0100 Subject: [PATCH] Fixed higherMultiple for half types --- glm/gtx/multiple.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glm/gtx/multiple.inl b/glm/gtx/multiple.inl index 00fff8b4..e7078528 100644 --- a/glm/gtx/multiple.inl +++ b/glm/gtx/multiple.inl @@ -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); }