Linux: the held submits event made with CreateEventA, so the game links again

v0.6.0 Linux builds stopped at the link: undefined symbol CreateEventW. host/posix has CreateEventA only; with no name the two are the same call on Windows. The v0.6.0 AppImage on the downloads page was replaced with a build that has this.
This commit is contained in:
ruckus7382sfgsgdf
2026-11-20 18:18:05 -06:00
parent 6c7117635c
commit 043db52c62

View File

@@ -1159,7 +1159,7 @@ static void held_init(void) {
if (hold_on) hos_log("nvn: submits held (HOS_NVN_HOLD=%d: %s)", hold_on, if (hold_on) hos_log("nvn: submits held (HOS_NVN_HOLD=%d: %s)", hold_on,
hold_on == 2 ? "other threads' submits, replayed by a host thread" : "all, until a flush"); hold_on == 2 ? "other threads' submits, replayed by a host thread" : "all, until a flush");
if (hold_on == 2) { if (hold_on == 2) {
hold_event = CreateEventW(NULL, FALSE, FALSE, NULL); hold_event = CreateEventA(NULL, FALSE, FALSE, NULL); /* (A, not W: host/posix has CreateEventA only; v0.6.0's Linux builds stopped at the link) */
HANDLE h = CreateThread(NULL, 0, hold_flush_thread, NULL, 0, NULL); HANDLE h = CreateThread(NULL, 0, hold_flush_thread, NULL, 0, NULL);
if (h) CloseHandle(h); if (h) CloseHandle(h);
} }