Create a MainWindow class that manages the main win32 window of the application
This commit is contained in:
parent
3d14cec191
commit
6670bc09b9
24 changed files with 1187 additions and 1108 deletions
|
|
@ -59,10 +59,6 @@
|
|||
#include "swrenderer/things/r_playersprite.h"
|
||||
#include <chrono>
|
||||
|
||||
#ifdef WIN32
|
||||
void PeekThreadedErrorPane();
|
||||
#endif
|
||||
|
||||
EXTERN_CVAR(Int, r_clearbuffer)
|
||||
EXTERN_CVAR(Int, r_debug_draw)
|
||||
|
||||
|
|
@ -239,12 +235,7 @@ namespace swrenderer
|
|||
finished_threads++;
|
||||
if (!end_condition.wait_for(end_lock, 5s, [&]() { return finished_threads == Threads.size(); }))
|
||||
{
|
||||
#ifdef WIN32
|
||||
PeekThreadedErrorPane();
|
||||
#endif
|
||||
// Invoke the crash reporter so that we can capture the call stack of whatever the hung worker thread is doing
|
||||
int *threadCrashed = nullptr;
|
||||
*threadCrashed = 0xdeadbeef;
|
||||
I_FatalError("Render threads did not finish within 5 seconds!");
|
||||
}
|
||||
finished_threads = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue