Fix compilation error on Mac OS X
This commit is contained in:
parent
fe3d79b32d
commit
ee0203a343
|
@ -328,4 +328,16 @@ inline void DebugRenderer::setContactNormalLength(decimal contactNormalLength) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Hash function for a DebugItem
|
||||||
|
namespace std {
|
||||||
|
|
||||||
|
template <> struct hash<reactphysics3d::DebugRenderer::DebugItem> {
|
||||||
|
|
||||||
|
size_t operator()(const reactphysics3d::DebugRenderer::DebugItem& debugItem) const {
|
||||||
|
|
||||||
|
return std::hash<reactphysics3d::uint32>{}(static_cast<uint>(debugItem));
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue
Block a user