From 5725cef328c097a396d280261a85744879d8724d Mon Sep 17 00:00:00 2001 From: red-prig Date: Fri, 9 Dec 2022 21:58:15 +0300 Subject: [PATCH] DISABLE_SRGB_HACK config --- fpPS4.lpr | 3 +++ vulkan/vFlip.pas | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/fpPS4.lpr b/fpPS4.lpr index c20b8099..a0e6ecff 100644 --- a/fpPS4.lpr +++ b/fpPS4.lpr @@ -54,6 +54,7 @@ uses ps4_videodrv, vMemory, vImageManager, + vFlip, trace_manager; @@ -81,6 +82,7 @@ begin Writeln(' MEMORY_BOUND_HACK //limit the amount of GPU allocated memory (iGPU)'); Writeln(' IMAGE_TEST_HACK //always mark that the texture has changed'); Writeln(' IMAGE_LOAD_HACK //never reload texture'); + Writeln(' DISABLE_SRGB_HACK //disables hacked display of SRGB'); Exit(False); end; @@ -125,6 +127,7 @@ begin 'MEMORY_BOUND_HACK' :vMemory.MEMORY_BOUND_HACK:=True; 'IMAGE_TEST_HACK' :vImageManager.IMAGE_TEST_HACK:=True; 'IMAGE_LOAD_HACK' :vImageManager.IMAGE_LOAD_HACK:=True; + 'DISABLE_SRGB_HACK' :vFlip.SRGB_HACK:=False; else; end; end; diff --git a/vulkan/vFlip.pas b/vulkan/vFlip.pas index aaab21c1..e8bbdb63 100644 --- a/vulkan/vFlip.pas +++ b/vulkan/vFlip.pas @@ -132,6 +132,9 @@ type Procedure Flip; end; +var + SRGB_HACK:Boolean=True; + implementation Procedure TvFlipCursor.Free; @@ -314,9 +317,6 @@ begin buf^.Init(Self); end; -Const - SRGB_HACK=True; - Procedure TvFlip.SetImageFormat(format,tmode:DWORD); begin if (Fformat=format) and (Ftmode=tmode) and (Ffilp_shader<>nil) then Exit;