mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-13 14:30:27 +02:00
Bail more gracefully if no real OpenGL driver is installed on XP
This commit is contained in:
1 parent
bd8a4ecfee
commit
c88920be4b
4 files changed
+24
-18
No files matched your search
@@ -106,7 +106,9 @@ unsigned int WINAPI TheThread(void *)
|
||||
std::string full_error = StringFromFormat( "Failed initializing OpenGL. Try upgrading your graphics drivers.\n\nError message:\n\n%s", error_string.c_str());
|
||||
MessageBoxA(0, full_error.c_str(), "OpenGL Error", MB_OK | MB_ICONERROR);
|
||||
ERROR_LOG(BOOT, full_error.c_str());
|
||||
goto shutdown;
|
||||
|
||||
// No safe way out without OpenGL.
|
||||
ExitProcess(1);
|
||||
}
|
||||
|
||||
NativeInitGraphics();
|
||||
@@ -139,6 +141,7 @@ shutdown:
|
||||
_InterlockedExchange(&emuThreadReady, THREAD_SHUTDOWN);
|
||||
|
||||
NativeShutdownGraphics();
|
||||
|
||||
host->ShutdownSound();
|
||||
host = nativeHost;
|
||||
NativeShutdown();
|
||||
|
||||
Reference in new issue
Block a user