Skip to content

Commit

Permalink
Fix build with GLM git
Browse files Browse the repository at this point in the history
  • Loading branch information
dscharrer committed Aug 17, 2017
1 parent 6bcc0a0 commit 59c0538
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/math/Types.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,13 @@ class Rectangle_;
typedef Rectangle_<s32> Rect;
typedef Rectangle_<float> Rectf;

#if GLM_VERSION >= 990
typedef glm::qualifier vec_precision_type;
#else
typedef glm::precision vec_precision_type;
#endif

template <class T, template <class, glm::precision> class V, int N>
template <class T, template <class, vec_precision_type> class V, int N>
struct vec_traits_base {
enum { num_components = N };
typedef T component_type;
Expand Down

0 comments on commit 59c0538

Please sign in to comment.