Skip to content

Commit

Permalink
winsys.cpp: Make a couple of things more compatible with non-macOS sy…
Browse files Browse the repository at this point in the history
…stems
  • Loading branch information
stephengtuggy committed Apr 30, 2024
1 parent 02e13c6 commit 013b5c2
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions engine/src/gldrv/winsys.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@
*/

#include <SDL2/SDL.h>
#include <OpenGL/gl.h>
#if defined (__APPLE__) && defined (__MACH__)
# include <OpenGL/gl.h>
#else
# include <GL/gl.h>
#endif

#include <assert.h>
#include <sstream>
Expand Down Expand Up @@ -56,7 +60,7 @@
*/

static SDL_Window *window = nullptr;
static SDL_Surface *screen = nullptr;
//static SDL_Surface *screen = nullptr;

static winsys_display_func_t display_func = nullptr;
static winsys_idle_func_t idle_func = nullptr;
Expand Down Expand Up @@ -379,7 +383,7 @@ void winsys_init(int *argc, char **argv, char const *window_title, char const *i
if (!setup_sdl_video_mode()) {
VS_LOG_FLUSH_EXIT(fatal, "setup_sdl_video_mode() failed!", 1);
} else {
// glutInit(argc, argv);
glutInit(argc, argv);
}
}

Expand Down

0 comments on commit 013b5c2

Please sign in to comment.