System: Get rid of double popup on renderer create error

This commit is contained in:
Stenzek
2024-05-12 23:37:00 +10:00
parent 5808e14b7e
commit be920acf38
4 changed files with 34 additions and 27 deletions

View File

@ -18,6 +18,7 @@
#include <string_view>
#include <vector>
class Error;
class SettingsInterface;
struct WindowInfo;
enum class AudioBackend : u8;
@ -91,7 +92,7 @@ void DisplayLoadingScreen(const char* message, int progress_min = -1, int progre
void RunOnCPUThread(std::function<void()> function, bool block = false);
/// Attempts to create the rendering device backend.
bool CreateGPUDevice(RenderAPI api);
bool CreateGPUDevice(RenderAPI api, Error* error);
/// Handles fullscreen transitions and such.
void UpdateDisplayWindow();