diff nuklear_ui/nuklear_sdl_gles2.h @ 1658:fa9ae059e4d3

Added support for GLES in addition to desktop GL
author Mike Pavone <pavone@retrodev.com>
date Sun, 30 Dec 2018 21:10:44 -0800
parents b581663c42ec
children 56a1171e29b9
line wrap: on
line diff
--- a/nuklear_ui/nuklear_sdl_gles2.h	Sun Dec 30 19:40:32 2018 -0800
+++ b/nuklear_ui/nuklear_sdl_gles2.h	Sun Dec 30 21:10:44 2018 -0800
@@ -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);