From 3a7970706a2b35dbf6dba52af100751a40bb8147 Mon Sep 17 00:00:00 2001 From: q66 Date: Thu, 30 Jul 2020 03:19:13 +0200 Subject: [PATCH] move gluint hashtable stuff elsewhere --- src/sauerlib/tools.hh | 12 ------------ src/shared/gl.hh | 8 ++++++++ 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/src/sauerlib/tools.hh b/src/sauerlib/tools.hh index 898d416..7bffa06 100644 --- a/src/sauerlib/tools.hh +++ b/src/sauerlib/tools.hh @@ -535,18 +535,6 @@ static inline bool htcmp(int x, int y) return x==y; } -#ifdef GL_HH -static inline uint hthash(GLuint key) -{ - return key; -} - -static inline bool htcmp(GLuint x, GLuint y) -{ - return x==y; -} -#endif - template struct vector { static const int MINSIZE = 8; diff --git a/src/shared/gl.hh b/src/shared/gl.hh index 0defaff..b660776 100644 --- a/src/shared/gl.hh +++ b/src/shared/gl.hh @@ -14,4 +14,12 @@ # endif #endif +static inline uint hthash(GLuint key) { + return key; +} + +static inline bool htcmp(GLuint x, GLuint y) { + return x==y; +} + #endif