mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Headless: Prevent segfaults with Vulkan.
This commit is contained in:
parent
8ccf32af47
commit
9080f41642
1 changed files with 4 additions and 0 deletions
|
@ -161,6 +161,8 @@ bool RunAutoTest(HeadlessHost *headlessHost, CoreParameter &coreParameter, bool
|
||||||
Core_UpdateDebugStats(g_Config.bShowDebugStats || g_Config.bLogFrameDrops);
|
Core_UpdateDebugStats(g_Config.bShowDebugStats || g_Config.bLogFrameDrops);
|
||||||
|
|
||||||
PSP_BeginHostFrame();
|
PSP_BeginHostFrame();
|
||||||
|
if (coreParameter.thin3d)
|
||||||
|
coreParameter.thin3d->BeginFrame();
|
||||||
|
|
||||||
coreState = CORE_RUNNING;
|
coreState = CORE_RUNNING;
|
||||||
while (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_EndHostFrame();
|
||||||
|
|
||||||
PSP_Shutdown();
|
PSP_Shutdown();
|
||||||
|
|
Loading…
Add table
Reference in a new issue