Skip to content

Commit

Permalink
provide missing GL_DEBUG definitions to fix compile on Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
Birch-san authored and VelorumS committed Apr 29, 2017
1 parent 3ea6df9 commit 2bc8a97
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libopenage/gui/guisys/private/opengl_debug_logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
#include <QOpenGLContext>
#include <QOpenGLFunctions_4_4_Core>

#ifdef __APPLE__
// from https://www.khronos.org/registry/OpenGL/api/GL/glext.h
#define GL_DEBUG_CALLBACK_FUNCTION 0x8244
#define GL_DEBUG_OUTPUT_SYNCHRONOUS 0x8242
#define GL_DEBUG_TYPE_ERROR 0x824C
#define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR 0x824E
#endif

namespace qtsdl {

gl_debug_parameters get_current_opengl_debug_parameters(const QOpenGLContext &current_source_context) {
Expand Down

0 comments on commit 2bc8a97

Please sign in to comment.