summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2017-12-07 18:57:38 -0800
committerMichael Pavone <pavone@retrodev.com>2017-12-07 18:57:38 -0800
commitc9b14bee9ad8354633bff888abacc600a778b54d (patch)
treefbf1e6c182fa0918993301e717dcb17356fe24d6
parenteec0f93a7227f8c9a1de3335a06084f5aa4349c7 (diff)
Fix GL include issue for 32-bit builds
--HG-- branch : nuklear_ui
-rw-r--r--nuklear_ui/blastem_nuklear.h1
-rw-r--r--nuklear_ui/nuklear_sdl_gles2.h6
2 files changed, 4 insertions, 3 deletions
diff --git a/nuklear_ui/blastem_nuklear.h b/nuklear_ui/blastem_nuklear.h
index be26805..c179b69 100644
--- a/nuklear_ui/blastem_nuklear.h
+++ b/nuklear_ui/blastem_nuklear.h
@@ -7,7 +7,6 @@
#define NK_INCLUDE_DEFAULT_ALLOCATOR
#define NK_INCLUDE_VERTEX_BUFFER_OUTPUT
#define NK_INCLUDE_FONT_BAKING
-#include <SDL_opengl.h>
#include "nuklear.h"
#include "nuklear_sdl_gles2.h"
diff --git a/nuklear_ui/nuklear_sdl_gles2.h b/nuklear_ui/nuklear_sdl_gles2.h
index f96e610..e22ec1d 100644
--- a/nuklear_ui/nuklear_sdl_gles2.h
+++ b/nuklear_ui/nuklear_sdl_gles2.h
@@ -15,8 +15,10 @@
#ifndef NK_SDL_GLES2_H_
#define NK_SDL_GLES2_H_
-#include <SDL2/SDL.h>
-#include <SDL2/SDL_opengles2.h>
+#include <SDL.h>
+#ifndef DISABLE_OPENGL
+#include <GL/glew.h>
+#endif
NK_API struct nk_context* nk_sdl_init(SDL_Window *win);