Browse Source

Android: Added a workaround for compiler error in Android SDK 18 and 19

tags/2021-05-28
hogliux 8 years ago
parent
commit
a54ad21045
1 changed files with 11 additions and 1 deletions
  1. +11
    -1
      modules/juce_opengl/juce_opengl.cpp

+ 11
- 1
modules/juce_opengl/juce_opengl.cpp View File

@@ -71,7 +71,17 @@
#ifndef GL_GLEXT_PROTOTYPES #ifndef GL_GLEXT_PROTOTYPES
#define GL_GLEXT_PROTOTYPES 1 #define GL_GLEXT_PROTOTYPES 1
#endif #endif
#include <GLES2/gl2.h>
#if JUCE_ANDROID_GL_ES_VERSION_3_0
#include <GLES3/gl3.h>
// workaround for a bug in SDK 18 and 19
// see: https://stackoverflow.com/questions/31003863/gles-3-0-including-gl2ext-h
#define __gl2_h_
#include <GLES2/gl2ext.h>
#else
#include <GLES2/gl2.h>
#endif
#endif #endif
namespace juce namespace juce


Loading…
Cancel
Save