Skip to content

Commit

Permalink
Fixes issues when including the OpenGL headers from SDL3
Browse files Browse the repository at this point in the history
  • Loading branch information
tanis2000 committed Jan 23, 2025
1 parent e7a0951 commit 2b2cc12
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/binocle/core/binocle_sdl.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@

#if defined(__IPHONEOS__) || defined(__ANDROID__) || defined(__EMSCRIPTEN__)

#include <SDL_opengles.h>
#include <SDL_opengles2.h>
#include <SDL_syswm.h>
#include <SDL3/SDL_opengles.h>
#include <SDL3/SDL_opengles2.h>
#include <SDL3/SDL_system.h>

#elif defined(__APPLE__)

#if defined(BINOCLE_GL)
//#define GL_GLEXT_PROTOTYPES 1
//#include <SDL_opengl.h>
//#include <SDL3/SDL_opengl.h>
#include <OpenGL/gl.h>
#elif defined(BINOCLE_METAL)
#include <OpenGL/gl.h>
Expand All @@ -29,8 +29,8 @@

#if defined(__WINDOWS__)
#include <glew/include/GL/glew.h>
#include <SDL_opengl.h>
#include <sdl/include/SDL_syswm.h>
#include <SDL3/SDL_opengl.h>
#include <SDL3/SDL_system.h>
#endif

// SDL
Expand Down

0 comments on commit 2b2cc12

Please sign in to comment.