From 330c9c7e9bace455b9782094a9231e33fbd70a99 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Mon, 13 May 2019 08:50:31 +0200 Subject: [PATCH] gpu: minor compilation warning in debug mode. --- src/gpu/debug.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gpu/debug.cpp b/src/gpu/debug.cpp index 7e59767f..e4642211 100644 --- a/src/gpu/debug.cpp +++ b/src/gpu/debug.cpp @@ -17,6 +17,7 @@ namespace lol { +#if LOL_BUILD_DEBUG static std::map gl_dbg_source_to_str { { GL_DEBUG_SOURCE_API, "API" }, @@ -71,6 +72,7 @@ static void gl_debug(GLenum source, GLenum type, GLuint id, } } +#if defined LOL_USE_GLEW && !defined __APPLE__ static void gl_debug_amd(GLuint id, GLenum category, GLenum severity, GLsizei length, const GLchar* message, GLvoid* user_param) @@ -78,6 +80,8 @@ static void gl_debug_amd(GLuint id, GLenum category, GLenum severity, gl_debug(GL_DEBUG_SOURCE_API, GL_DEBUG_TYPE_ERROR, id, severity, length, message, user_param); } +#endif +#endif void gpu::setup_debug() {