mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-06-03 17:23:18 +00:00
Renderer fixes (Splash + Aspect Ratio) (#2645)
* rewrite splash removed Splash class rewrite using imgui texture manager fix crashes & old validation error * handle games with abnormal aspect ratios
This commit is contained in:
parent
36927a7bbd
commit
5691046dcc
10 changed files with 66 additions and 222 deletions
|
@ -160,11 +160,8 @@ int VideoOutDriver::UnregisterBuffers(VideoOutPort* port, s32 attributeIndex) {
|
|||
}
|
||||
|
||||
void VideoOutDriver::Flip(const Request& req) {
|
||||
// Whatever the game is rendering show splash if it is active
|
||||
if (!presenter->ShowSplash(req.frame)) {
|
||||
// Present the frame.
|
||||
presenter->Present(req.frame);
|
||||
}
|
||||
// Present the frame.
|
||||
presenter->Present(req.frame);
|
||||
|
||||
// Update flip status.
|
||||
auto* port = req.port;
|
||||
|
@ -201,9 +198,6 @@ void VideoOutDriver::Flip(const Request& req) {
|
|||
}
|
||||
|
||||
void VideoOutDriver::DrawBlankFrame() {
|
||||
if (presenter->ShowSplash(nullptr)) {
|
||||
return;
|
||||
}
|
||||
const auto empty_frame = presenter->PrepareBlankFrame(false);
|
||||
presenter->Present(empty_frame);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue