D3D9 init error reporting improved. Use "override" properly in Host.
This commit is contained in:
parent
34f7b90c1d
commit
dda3ca3d5f
12 changed files with 108 additions and 98 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue