Backends: OpenGL3: Fix OpenGL ES2 includes on Apple systems.

# Conflicts:
#	backends/imgui_impl_opengl3.cpp
#	docs/CHANGELOG.txt
This commit is contained in:
Rokas Kupstys
2022-02-02 10:38:37 +02:00
committed by ocornut
parent 2554b512c0
commit 40fd163a3b
2 changed files with 6 additions and 1 deletions

View File

@ -108,7 +108,11 @@
// GL includes
#if defined(IMGUI_IMPL_OPENGL_ES2)
#include <GLES2/gl2.h>
#if (defined(__APPLE__) && (TARGET_OS_IOS || TARGET_OS_TV))
#include <OpenGLES/ES2/gl.h> // Use GL ES 2
#else
#include <GLES2/gl2.h> // Use GL ES 2
#endif
#if defined(__EMSCRIPTEN__)
#ifndef GL_GLEXT_PROTOTYPES
#define GL_GLEXT_PROTOTYPES