DISABLE_SRGB_HACK config

This commit is contained in:
red-prig 2022-12-09 21:58:15 +03:00
parent 56f0d24fcc
commit 5725cef328
2 changed files with 6 additions and 3 deletions

View File

@ -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;

View File

@ -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;