diff --git a/engine/joint/v4k.h b/engine/joint/v4k.h index d9d64db..7fa8ca2 100644 --- a/engine/joint/v4k.h +++ b/engine/joint/v4k.h @@ -392989,7 +392989,7 @@ int window_swap() { if(!stbi_write_png(va("tests/out/%s.png", argv(0)), w, h, 3, rgb, 3 * w) ) { PANIC("!could not write screenshot file `%s`\n", screenshot_file); } - exit(0); + return 0; } return 1; diff --git a/engine/split/v4k_window.c b/engine/split/v4k_window.c index 1ced7b3..4b3d6ad 100644 --- a/engine/split/v4k_window.c +++ b/engine/split/v4k_window.c @@ -666,7 +666,7 @@ int window_swap() { if(!stbi_write_png(va("tests/out/%s.png", argv(0)), w, h, 3, rgb, 3 * w) ) { PANIC("!could not write screenshot file `%s`\n", screenshot_file); } - exit(0); + return 0; } return 1; diff --git a/engine/v4k.c b/engine/v4k.c index 78d1601..745d657 100644 --- a/engine/v4k.c +++ b/engine/v4k.c @@ -27529,7 +27529,7 @@ int window_swap() { if(!stbi_write_png(va("tests/out/%s.png", argv(0)), w, h, 3, rgb, 3 * w) ) { PANIC("!could not write screenshot file `%s`\n", screenshot_file); } - exit(0); + return 0; } return 1;