mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-13 01:29:41 +01:00
Handle Vulkan init errors more gracefully.
This commit is contained in:
1 parent
76b17a4912
commit
82205a4660
5 files changed
+70
-41
No files matched your search
@@ -128,6 +128,7 @@ unsigned int WINAPI TheThread(void *)
|
||||
I18NCategory *err = GetI18NCategory("Error");
|
||||
Reporting::ReportMessage("Graphics init error: %s", error_string.c_str());
|
||||
|
||||
const char *defaultErrorVulkan = "Failed initializing graphics. Try upgrading your graphics drivers.\n\nWould you like to try switching to OpenGL?\n\nError message:";
|
||||
const char *defaultErrorOpenGL = "Failed initializing graphics. Try upgrading your graphics drivers.\n\nWould you like to try switching to DirectX 9?\n\nError message:";
|
||||
const char *defaultErrorDirect3D9 = "Failed initializing graphics. Try upgrading your graphics drivers and directx 9 runtime.\n\nWould you like to try switching to OpenGL?\n\nError message:";
|
||||
const char *genericError;
|
||||
@@ -137,6 +138,10 @@ unsigned int WINAPI TheThread(void *)
|
||||
nextBackend = GPU_BACKEND_OPENGL;
|
||||
genericError = err->T("GenericDirect3D9Error", defaultErrorDirect3D9);
|
||||
break;
|
||||
case GPU_BACKEND_VULKAN:
|
||||
nextBackend = GPU_BACKEND_OPENGL;
|
||||
genericError = err->T("GenericVulkanError", defaultErrorDirect3D9);
|
||||
break;
|
||||
case GPU_BACKEND_OPENGL:
|
||||
default:
|
||||
nextBackend = GPU_BACKEND_DIRECT3D9;
|
||||
|
||||
Reference in new issue
Block a user