From c0f33a51e741805531a117e7a6867714eec036e2 Mon Sep 17 00:00:00 2001 From: cinnaboot Date: Tue, 8 Feb 2022 12:35:58 -0500 Subject: [PATCH] add include guards to GLDebug.h --- src/GLDebug.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/GLDebug.h b/src/GLDebug.h index 8c7ddc2..eb13bfc 100644 --- a/src/GLDebug.h +++ b/src/GLDebug.h @@ -2,13 +2,18 @@ // NOTE: get useful debug messages from opengl // https://www.khronos.org/opengl/wiki/Debug_Output +#ifndef GL_DEBUG_H +#define GL_DEBUG_H + #include #include "shader.h" void dumpShader(GLuint prog_id); + const char* glEnumToString(GLenum e); + void openglDebugCallback(GLenum source, GLenum type, GLuint id, @@ -17,6 +22,8 @@ void openglDebugCallback(GLenum source, const GLchar* message, const void* userParam); +#endif // GL_DEBUG_H + #ifdef GL_DEBUG_IMPLEMENTATION