mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Android: Added a workaround for compiler error in Android SDK 18 and 19
This commit is contained in:
parent
7be889a775
commit
a54ad21045
1 changed files with 11 additions and 1 deletions
|
|
@ -71,7 +71,17 @@
|
|||
#ifndef GL_GLEXT_PROTOTYPES
|
||||
#define GL_GLEXT_PROTOTYPES 1
|
||||
#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
|
||||
|
||||
namespace juce
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue