mirror of
https://github.com/Drezil/imgui.git
synced 2025-07-17 02:03:13 +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:
@ -4,9 +4,9 @@
|
||||
#include "imgui_impl_sdl.h"
|
||||
#include <stdio.h>
|
||||
#include <SDL.h>
|
||||
#include <SDL_OpenGL.h>
|
||||
#include <SDL_opengl.h>
|
||||
|
||||
int SDL_main(int, char**)
|
||||
int main(int, char**)
|
||||
{
|
||||
// Setup SDL
|
||||
if (SDL_Init(SDL_INIT_EVERYTHING) != 0)
|
||||
|
Reference in New Issue
Block a user