Browse Source

Added a missing include file to nanovg_gl.h.

To make the examples link correctly under OS X 12.3, you need to include
<OpenGL/glext.h> in the file.  This commit limits what happens by protecting
the include as follows:

    #ifdef __APPLE__
    #   include <OpenGL/glext.h>
    #endif

Thus, this should have no effect on non-Apple systems.
shared-context
Cem Karan 9 years ago
parent
commit
2098a54242
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/nanovg_gl.h

+ 4
- 0
src/nanovg_gl.h View File

@@ -113,6 +113,10 @@ enum NVGimageFlagsGL {
#include <math.h>
#include "nanovg.h"

#ifdef __APPLE__
# include <OpenGL/glext.h>
#endif

enum GLNVGuniformLoc {
GLNVG_LOC_VIEWSIZE,
GLNVG_LOC_TEX,


Loading…
Cancel
Save