SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
16
graphics/glm/patches/patch-glm_ext_quaternion_common_inl
Normal file
16
graphics/glm/patches/patch-glm_ext_quaternion_common_inl
Normal file
|
@ -0,0 +1,16 @@
|
|||
glm-0.9.9.8/glm-0.9.9.8/glm/../glm/gtc/../ext/quaternion_common.inl:107:29: error: implicit conversion from 'int' to 'float' may lose precision [-Werror,-Wimplicit-int-float-conversion]
|
||||
T phi = angle + k * glm::pi<T>();
|
||||
^ ~
|
||||
|
||||
Index: glm/ext/quaternion_common.inl
|
||||
--- glm/ext/quaternion_common.inl.orig
|
||||
+++ glm/ext/quaternion_common.inl
|
||||
@@ -104,7 +104,7 @@ namespace glm
|
||||
{
|
||||
// Graphics Gems III, page 96
|
||||
T angle = acos(cosTheta);
|
||||
- T phi = angle + k * glm::pi<T>();
|
||||
+ T phi = angle + static_cast<T>(k) * glm::pi<T>();
|
||||
return (sin(angle - a * phi)* x + sin(a * phi) * z) / sin(angle);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue