Skip to content

Commit

Permalink
imgui_impl_opengl3.cpp Using GLES3 on IOS instead of gl3w. (#2002, #1873
Browse files Browse the repository at this point in the history
)

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).
  • Loading branch information
ocornut committed Aug 8, 2018
1 parent 0065fe1 commit 35124cd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/imgui_impl_opengl3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,11 @@
#else
#include <stdint.h> // intptr_t
#endif
#if defined(__APPLE__)
#include "TargetConditionals.h"
#endif

#ifdef __EMSCRIPTEN__
#if (defined(__APPLE__) && TARGET_OS_IOS) || (defined(__EMSCRIPTEN__))
#include <GLES3/gl3.h> // Use GL ES 3
#else
// About OpenGL function loaders:
Expand Down

0 comments on commit 35124cd

Please sign in to comment.