fix for crash in apps when splash is missing
This commit is contained in:
parent
77cf875585
commit
38061ae636
|
@ -622,8 +622,10 @@ public:
|
||||||
void SubmitDone() {
|
void SubmitDone() {
|
||||||
// This is wrong as `submitDone()` should never be blocking. The behavior will be
|
// This is wrong as `submitDone()` should never be blocking. The behavior will be
|
||||||
// reworked with mutiple queues introduction
|
// reworked with mutiple queues introduction
|
||||||
|
if (cp.valid()) {
|
||||||
cp.get();
|
cp.get();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void ProcessCmdList(u32* cmdbuf, u32 size_in_bytes);
|
void ProcessCmdList(u32* cmdbuf, u32 size_in_bytes);
|
||||||
|
|
|
@ -161,13 +161,17 @@ void RendererVulkan::RecreateFrame(Frame* frame, u32 width, u32 height) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool RendererVulkan::ShowSplash(Frame* frame /*= nullptr*/) {
|
bool RendererVulkan::ShowSplash(Frame* frame /*= nullptr*/) {
|
||||||
|
const auto* splash = Common::Singleton<Splash>::Instance();
|
||||||
|
if (splash->GetImageData().empty()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (!Libraries::SystemService::IsSplashVisible()) {
|
if (!Libraries::SystemService::IsSplashVisible()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!frame) {
|
if (!frame) {
|
||||||
if (!splash_img.has_value()) {
|
if (!splash_img.has_value()) {
|
||||||
const auto* splash = Common::Singleton<Splash>::Instance();
|
|
||||||
|
|
||||||
VideoCore::ImageInfo info{};
|
VideoCore::ImageInfo info{};
|
||||||
info.pixel_format = vk::Format::eR8G8B8A8Srgb;
|
info.pixel_format = vk::Format::eR8G8B8A8Srgb;
|
||||||
|
|
Loading…
Reference in New Issue