Headless: Prevent segfaults with Vulkan.

This commit is contained in:
Unknown W. Brackets 2017-11-14 22:34:18 -08:00
parent 8ccf32af47
commit 9080f41642

View File

@ -161,6 +161,8 @@ bool RunAutoTest(HeadlessHost *headlessHost, CoreParameter &coreParameter, bool
Core_UpdateDebugStats(g_Config.bShowDebugStats || g_Config.bLogFrameDrops);
PSP_BeginHostFrame();
if (coreParameter.thin3d)
coreParameter.thin3d->BeginFrame();
coreState = CORE_RUNNING;
while (coreState == CORE_RUNNING)
@ -185,6 +187,8 @@ bool RunAutoTest(HeadlessHost *headlessHost, CoreParameter &coreParameter, bool
}
}
if (coreParameter.thin3d)
coreParameter.thin3d->EndFrame();
PSP_EndHostFrame();
PSP_Shutdown();