summaryrefslogtreecommitdiff
path: root/nuklear_ui/nuklear_sdl_gles2.h
diff options
context:
space:
mode:
Diffstat (limited to 'nuklear_ui/nuklear_sdl_gles2.h')
-rw-r--r--nuklear_ui/nuklear_sdl_gles2.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/nuklear_ui/nuklear_sdl_gles2.h b/nuklear_ui/nuklear_sdl_gles2.h
index c727f31..e038af5 100644
--- a/nuklear_ui/nuklear_sdl_gles2.h
+++ b/nuklear_ui/nuklear_sdl_gles2.h
@@ -17,8 +17,12 @@
#include <SDL.h>
#ifndef DISABLE_OPENGL
+#ifdef USE_GLES
+#include <SDL_opengles2.h>
+#else
#include <GL/glew.h>
#endif
+#endif
NK_API struct nk_context* nk_sdl_init(SDL_Window *win);