Fix for windows
This commit is contained in:
@@ -42,7 +42,10 @@ public sealed unsafe class SDL3Window : IDisposable
|
||||
public SDL3Window(string name, int posX, int posY, int width, int height, SDL.WindowFlags flags = SDL.WindowFlags.Resizable | SDL.WindowFlags.HighPixelDensity)
|
||||
{
|
||||
if (OperatingSystem.IsLinux())
|
||||
{
|
||||
SDL.SetHint(SDL.Hints.VideoDriver, "x11");
|
||||
SDL.SetHint(SDL.Hints.VideoForceEGL, "1");
|
||||
}
|
||||
|
||||
if (!SDL.Init(SDL.InitFlags.Events | SDL.InitFlags.Video | SDL.InitFlags.Gamepad))
|
||||
throw new Exception($"SDL_Init failed: {SDL.GetError()}");
|
||||
|
||||
Reference in New Issue
Block a user