Browse Source

Use apple gl3 headers as needed; Allow build with glew

Signed-off-by: falkTX <falktx@falktx.com>
pull/316/head
falkTX 3 years ago
parent
commit
23ac1c2e91
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 10 additions and 3 deletions
  1. +10
    -3
      dgl/OpenGL.hpp

+ 10
- 3
dgl/OpenGL.hpp View File

@@ -67,13 +67,20 @@
// OpenGL includes

#ifdef DISTRHO_OS_MAC
# include <OpenGL/gl.h>
# ifdef DGL_USE_OPENGL3
# include <OpenGL/gl3.h>
# include <OpenGL/gl3ext.h>
# else
# include <OpenGL/gl.h>
# endif
#else
# ifndef DISTRHO_OS_WINDOWS
# define GL_GLEXT_PROTOTYPES
# endif
# include <GL/gl.h>
# include <GL/glext.h>
# ifndef __GLEW_H__
# include <GL/gl.h>
# include <GL/glext.h>
# endif
#endif

// -----------------------------------------------------------------------


Loading…
Cancel
Save