1
Fork 0

Enable SDL backend on linux

This commit is contained in:
Joshua Goins 2022-10-03 21:43:23 -04:00
parent f4c04e1ddb
commit b193b2594d
2 changed files with 2 additions and 6 deletions

View file

@ -1,6 +1,6 @@
#include "../compat.h" #include "../compat.h"
#if !defined(__linux__) && !defined(__BSD__) && defined(ENABLE_OPENGL) #if defined(ENABLE_OPENGL)
#ifdef __MINGW32__ #ifdef __MINGW32__
#define FOR_WINDOWS 1 #define FOR_WINDOWS 1

View file

@ -166,11 +166,7 @@ void main_func(void) {
wm_api = &gfx_dxgi_api; wm_api = &gfx_dxgi_api;
#elif defined(ENABLE_OPENGL) #elif defined(ENABLE_OPENGL)
rendering_api = &gfx_opengl_api; rendering_api = &gfx_opengl_api;
#if defined(__linux__) || defined(__BSD__)
wm_api = &gfx_glx;
#else
wm_api = &gfx_sdl; wm_api = &gfx_sdl;
#endif
#elif defined(ENABLE_GFX_DUMMY) #elif defined(ENABLE_GFX_DUMMY)
rendering_api = &gfx_dummy_renderer_api; rendering_api = &gfx_dummy_renderer_api;
wm_api = &gfx_dummy_wm_api; wm_api = &gfx_dummy_wm_api;