Skip to content

Commit a20cae2

Browse files
committed
provide missing GL_DEBUG definitions to fix compile on Mac
1 parent b9d15b7 commit a20cae2

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

libopenage/gui/guisys/private/opengl_debug_logger.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@
55
#include <QOpenGLContext>
66
#include <QOpenGLFunctions_4_4_Core>
77

8+
#ifdef __APPLE__
9+
// from https://www.khronos.org/registry/OpenGL/api/GL/glext.h
10+
#define GL_DEBUG_CALLBACK_FUNCTION 0x8244
11+
#define GL_DEBUG_OUTPUT_SYNCHRONOUS 0x8242
12+
#define GL_DEBUG_TYPE_ERROR 0x824C
13+
#define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR 0x824E
14+
#endif
15+
816
namespace qtsdl {
917

1018
gl_debug_parameters get_current_opengl_debug_parameters(const QOpenGLContext &current_source_context) {

0 commit comments

Comments
 (0)