fix for crash in apps when splash is missing

This commit is contained in:
psucien 2024-05-16 09:07:03 +02:00 committed by georgemoralis
parent 77cf875585
commit 38061ae636
2 changed files with 8 additions and 2 deletions

View file

@ -622,8 +622,10 @@ public:
void SubmitDone() {
// This is wrong as `submitDone()` should never be blocking. The behavior will be
// reworked with mutiple queues introduction
if (cp.valid()) {
cp.get();
}
}
private:
void ProcessCmdList(u32* cmdbuf, u32 size_in_bytes);

View file

@ -161,13 +161,17 @@ void RendererVulkan::RecreateFrame(Frame* frame, u32 width, u32 height) {
}
bool RendererVulkan::ShowSplash(Frame* frame /*= nullptr*/) {
const auto* splash = Common::Singleton<Splash>::Instance();
if (splash->GetImageData().empty()) {
return false;
}
if (!Libraries::SystemService::IsSplashVisible()) {
return false;
}
if (!frame) {
if (!splash_img.has_value()) {
const auto* splash = Common::Singleton<Splash>::Instance();
VideoCore::ImageInfo info{};
info.pixel_format = vk::Format::eR8G8B8A8Srgb;