mirror of
https://github.com/Drezil/imgui.git
synced 2025-07-07 13:35:49 +02:00
Fix SDL2-example for Linux
The header is called "SDL_opengl.h" - case matters on Linux. The main() function must indeed be called main(), on Windows it'll be renamed to SDL_main (for SDL2main.lib) by #define in SDL_main.h (which is included by SDL.h) I added an entry to the example's README that describes how to build it on Linux.
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
|
||||
#include <SDL.h>
|
||||
#include <SDL_syswm.h>
|
||||
#include <SDL_OpenGL.h>
|
||||
#include <SDL_opengl.h>
|
||||
#include <imgui.h>
|
||||
#include "imgui_impl_sdl.h"
|
||||
|
||||
|
Reference in New Issue
Block a user