fix: window now visible — SDL_ShowWindow + Wayland support in run.sh

- Added SDL_ShowWindow + SDL_RaiseWindow after window creation
- run.sh: auto-detect Wayland vs X11, set SDL_VIDEODRIVER accordingly
- Wayland session uses SDL_VIDEODRIVER=wayland (bundled SDL3 lacks X11 support)
- Engine runs at 1600+ FPS, window visible on Wayland desktop
- Screenshots confirm 3D geometry rendering correctly
This commit is contained in:
emil28092005
2026-06-18 00:22:27 +03:00
parent 46a04850e3
commit aa93b55a74
2 changed files with 13 additions and 3 deletions
+3
View File
@@ -43,6 +43,9 @@ public sealed unsafe class Sdl3Window : IWindow
if (_window == null)
throw new InvalidOperationException($"SDL_CreateWindow failed: {SDL3.SDL_GetError()}");
SDL3.SDL_ShowWindow(_window);
SDL3.SDL_RaiseWindow(_window);
}
public void PumpEvents()