mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 01:03:41 +01:00
D3D9 init error reporting improved. Use "override" properly in Host.
This commit is contained in:
1 parent
34f7b90c1d
commit
dda3ca3d5f
12 files changed
+108
-98
No files matched your search
@@ -125,7 +125,7 @@ unsigned int WINAPI TheThread(void *)
|
||||
}
|
||||
|
||||
std::string error_string;
|
||||
if (!host->InitGL(&error_string)) {
|
||||
if (!host->InitGraphics(&error_string)) {
|
||||
Reporting::ReportMessage("Graphics init error: %s", error_string.c_str());
|
||||
std::string full_error = StringFromFormat( "Failed initializing OpenGL. Try upgrading your graphics drivers.\n\nError message:\n\n%s", error_string.c_str());
|
||||
MessageBox(0, ConvertUTF8ToWString(full_error).c_str(), L"OpenGL Error", MB_OK | MB_ICONERROR);
|
||||
@@ -172,7 +172,7 @@ shutdown:
|
||||
host = nativeHost;
|
||||
NativeShutdown();
|
||||
host = oldHost;
|
||||
host->ShutdownGL();
|
||||
host->ShutdownGraphics();
|
||||
|
||||
_InterlockedExchange(&emuThreadReady, THREAD_END);
|
||||
|
||||
|
||||
Reference in new issue
Block a user