[Project64] Add checks around g_Debugger->FrameDrawn

This commit is contained in:
zilmar 2019-02-10 09:14:51 +10:30
parent cfc510880c
commit 03700db740
1 changed files with 4 additions and 1 deletions

View File

@ -2217,7 +2217,10 @@ void CN64System::RefreshScreen()
{ {
WriteTrace(TraceGFXPlugin, TraceDebug, "UpdateScreen Starting"); WriteTrace(TraceGFXPlugin, TraceDebug, "UpdateScreen Starting");
g_Plugins->Gfx()->UpdateScreen(); g_Plugins->Gfx()->UpdateScreen();
g_Debugger->FrameDrawn(); if (g_Debugger != NULL && HaveDebugger())
{
g_Debugger->FrameDrawn();
}
WriteTrace(TraceGFXPlugin, TraceDebug, "UpdateScreen Done"); WriteTrace(TraceGFXPlugin, TraceDebug, "UpdateScreen Done");
} }
__except_catch() __except_catch()