mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 03:04:33 +02:00
preprocessor error on Linux/Mac
This commit is contained in:
parent
4404917003
commit
0cdee2d6ec
1 changed files with 3 additions and 1 deletions
|
@ -49,6 +49,8 @@ static const GLenum _elementTypeToGLType[gpu::NUM_TYPES] = {
|
|||
|
||||
// Stupid preprocessor trick to turn the line macro into a string
|
||||
#define CHECK_GL_ERROR_HELPER(x) #x
|
||||
#define CHECK_GL_ERROR() gpu::GLBackend::checkGLErrorDebug(__FUNCTION__ ":" CHECK_GL_ERROR_HELPER(__LINE__))
|
||||
// FIXME doesn't build on Linux or Mac. Hmmmm
|
||||
// #define CHECK_GL_ERROR() gpu::GLBackend::checkGLErrorDebug(__FUNCTION__ ":" CHECK_GL_ERROR_HELPER(__LINE__))
|
||||
#define CHECK_GL_ERROR() gpu::GLBackend::checkGLErrorDebug(__FUNCTION__)
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue