mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-04-20 03:24:49 +00:00
hot-fix: fix for unintended gamma correction bypass when HDR is disabled
This commit is contained in:
parent
f3afbfbcec
commit
5d4812d1a6
2 changed files with 3 additions and 3 deletions
|
@ -916,7 +916,7 @@ Frame* Presenter::GetRenderFrame() {
|
|||
|
||||
// Initialize default frame image
|
||||
if (frame->width == 0 || frame->height == 0 || frame->is_hdr != swapchain.GetHDR()) {
|
||||
RecreateFrame(frame, 1920, 1080);
|
||||
RecreateFrame(frame, Config::getScreenWidth(), Config::getScreenHeight());
|
||||
}
|
||||
|
||||
return frame;
|
||||
|
|
|
@ -47,7 +47,7 @@ class Rasterizer;
|
|||
class Presenter {
|
||||
struct PostProcessSettings {
|
||||
float gamma = 1.0f;
|
||||
bool hdr = false;
|
||||
u32 hdr = 0;
|
||||
};
|
||||
|
||||
public:
|
||||
|
@ -113,7 +113,7 @@ public:
|
|||
return;
|
||||
}
|
||||
swapchain.SetHDR(enable);
|
||||
pp_settings.hdr = enable;
|
||||
pp_settings.hdr = enable ? 1 : 0;
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Reference in a new issue