Weird that it didn't get to write any log, the video init should come way later. Maybe the log needs more flushing.
Strange, yeah.
Do the sdl1 binaries I have released work with -gl?
system: win7 embedded standard x64, nvidia gt218
all binaries work.
system: same, but via RDP:
-noaudio -nogl: sdl1 builds work; sdl2 builds: your silently quits, mine crashes:
Spoiler:
#0 0x0051cff0 in SDL_LowerBlit_REAL (src=0x13bb780,
srcrect=0x76a4f8 <video+24>, dst=0x0, dstrect=0x76a4f8 <video+24>)
at src/video/SDL_surface.c:592
#1 0x004a6ad6 in video_update () at hwsdl2_video.c:210
#2 0x004a6f58 in hw_video_set_palette (num=256, first=0,
pal=0x76a554 <video+116> "") at ../../../../src/hw/sdl/hwsdl_video.c:40
#3 hw_video_refresh_palette () at ../../../../src/hw/sdl/hwsdl_video.c:40
#4 hw_video_init (w=<optimized out>, h=<optimized out>) at hwsdl2_video.c:493
#5 0x00463458 in ui_late_init () at uiclassic.c:342
#6 0x0040f2a2 in main_do () at game.c:506
#7 0x0040b6d7 in main_1oom (argc=2, argv=0x13b1688) at main.c:81
#8 0x004a4575 in SDL_main (argc=argc@entry=2, argv=argv@entry=0x13b1688)
at hwsdl2.c:210
#9 0x004d8fb4 in main_utf8 (argv=0x13b1688, argc=2)
at src/main/windows/SDL_windows_main.c:126
#10 main_getcmdline () at src/main/windows/SDL_windows_main.c:159
#11 0x004d90c5 in WinMain@16 (hInst=0x400000, hPrev=hPrev@entry=0x0,
szCmdLine=0x15c418f "-noaudio", sw=10)
at src/main/windows/SDL_windows_main.c:202
What happens is that the pixelformat for the window is RGB565 under RDP, but for some reason SDL_PixelFormatEnumToMasks() in video_sw_set() returns 'Unknown pixel format' for it, and then rgbabuffer is NULL, and all goes down from there.
sdl2 builds reject -gl/-nogl flags and die silently (when running under MSYS2 gdb one can notice an error message, but no logs written). The above backtrace is for a run with -noaudio only.
sdl1 builds with -noaudio -gl over RDP: a window opens with white background; nothing else happens.
I use sdl1 so it's not getting dropped. So far 100% of Windows test reports have stated that sdl1 works but only 50% that sdl2 does. (Sample size being 2...)
As for a waste of time: have you noticed there's Allegro 4 support?
I do not care much which SDL version the Windows users have to deal with. For the v0.x releases I will build both.
No. I consider this a fatal error. There is -noaudio for playing without sound.
See above. Also, I do not plan to expand the hw/ API with the latter.
Your decision, man. It was only a suggestion.
(also I thought allegro is for the dos version).