(Re)add catch for wchar_t in VideoDisplay::Render as it turns out that some of the stuff it calls still throws strings
Originally committed to SVN as r4249.
This commit is contained in:
parent
fd701c67ec
commit
27a159793a
1 changed files with 7 additions and 0 deletions
|
@ -303,6 +303,13 @@ catch (const VideoOutException &err) {
|
||||||
err.GetMessage().c_str());
|
err.GetMessage().c_str());
|
||||||
VideoContext::Get()->Reset();
|
VideoContext::Get()->Reset();
|
||||||
}
|
}
|
||||||
|
catch (const wchar_t *err) {
|
||||||
|
wxLogError(
|
||||||
|
L"An error occurred trying to render the video frame on the screen.\n"
|
||||||
|
L"Error message reported: %s",
|
||||||
|
err);
|
||||||
|
VideoContext::Get()->Reset();
|
||||||
|
}
|
||||||
catch (...) {
|
catch (...) {
|
||||||
wxLogError(
|
wxLogError(
|
||||||
_T("An error occurred trying to render the video frame to screen.\n")
|
_T("An error occurred trying to render the video frame to screen.\n")
|
||||||
|
|
Loading…
Reference in a new issue