mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-05-29 00:21:34 +08:00
@@ -600,11 +600,16 @@ bool PSP_InitStart(const CoreParameter &coreParam) {
|
||||
Draw::DrawContext *draw = g_CoreParameter.graphicsContext ? g_CoreParameter.graphicsContext->GetDrawContext() : nullptr;
|
||||
|
||||
GPUCore gpuCore = g_CoreParameter.gpuCore;
|
||||
|
||||
// In libretro, the creation order is different, it's ok with a null draw context here.
|
||||
// We do need to rework the whole init process.. ugh.
|
||||
#ifndef __LIBRETRO__
|
||||
if (!draw && gpuCore != GPUCORE_SOFTWARE) {
|
||||
ERROR_LOG(Log::Loader, "No drawing context provided.");
|
||||
g_bootState = BootState::Failed;
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
g_CoreParameter.errorString.clear();
|
||||
|
||||
|
||||
@@ -124,8 +124,10 @@ void LibretroVulkanContext::ContextReset() {
|
||||
|
||||
void LibretroVulkanContext::ContextDestroy() {
|
||||
INFO_LOG(Log::G3D, "LibretroVulkanContext::ContextDestroy()");
|
||||
vk->WaitUntilQueueIdle();
|
||||
LibretroHWRenderContext::ContextDestroy();
|
||||
if (vk) {
|
||||
vk->WaitUntilQueueIdle();
|
||||
LibretroHWRenderContext::ContextDestroy();
|
||||
}
|
||||
}
|
||||
|
||||
void LibretroVulkanContext::CreateDrawContext() {
|
||||
|
||||
Reference in New Issue
Block a user