mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2024-12-29 11:06:07 +00:00
fix for crash in apps when splash is missing
This commit is contained in:
parent
77cf875585
commit
38061ae636
|
@ -622,7 +622,9 @@ 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
|
||||||
cp.get();
|
if (cp.valid()) {
|
||||||
|
cp.get();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -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 a new issue