Warn on failed surface creation for vulkan

Vulkan can technically work just fine without presenting to the user, so
consider these failed window procedures as "warnings" during iteration.
This commit is contained in:
Wunkolo 2023-07-18 22:38:08 -07:00
parent 444d50eaf5
commit c7a93c4f52
3 changed files with 9 additions and 4 deletions

View file

@ -57,7 +57,7 @@ Emulator::Emulator()
window = SDL_CreateWindow("Alber", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, width, height, SDL_WINDOW_VULKAN);
if (window == nullptr) {
// Helpers::panic("Window creation failed: %s", SDL_GetError());
Helpers::warn("Window creation failed: %s", SDL_GetError());
}
}
#endif