From 35124cdd076b63a550aeea05c7eccf22849f92d6 Mon Sep 17 00:00:00 2001 From: omar Date: Wed, 8 Aug 2018 17:38:18 +0200 Subject: [PATCH] imgui_impl_opengl3.cpp Using GLES3 on IOS instead of gl3w. (#2002, #1873) Not modifying the main.cpp yet because we need to test GL ES 3 context creation on iOS (only imgui_impl_opengl3.cpp was tested). --- examples/imgui_impl_opengl3.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/imgui_impl_opengl3.cpp b/examples/imgui_impl_opengl3.cpp index 90358f6d..1cd8c051 100644 --- a/examples/imgui_impl_opengl3.cpp +++ b/examples/imgui_impl_opengl3.cpp @@ -57,8 +57,11 @@ #else #include // intptr_t #endif +#if defined(__APPLE__) +#include "TargetConditionals.h" +#endif -#ifdef __EMSCRIPTEN__ +#if (defined(__APPLE__) && TARGET_OS_IOS) || (defined(__EMSCRIPTEN__)) #include // Use GL ES 3 #else // About OpenGL function loaders: