Skip to content

Commit

Permalink
Apply gamma in the editor
Browse files Browse the repository at this point in the history
  • Loading branch information
dpjudas committed Dec 7, 2023
1 parent 9e08794 commit 517e3e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion D3D11Drv/UD3D11RenderDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1331,7 +1331,7 @@ void UD3D11RenderDevice::Unlock(UBOOL Blit)
}
else
{
float brightness = GIsEditor ? 1.0f : Clamp(Viewport->GetOuterUClient()->Brightness * 2.0, 0.05, 2.99);
float brightness = Clamp(Viewport->GetOuterUClient()->Brightness * 2.0, 0.05, 2.99);

if (GammaMode == 0)
{
Expand Down
2 changes: 1 addition & 1 deletion VulkanDrv/UVulkanRenderDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1713,7 +1713,7 @@ void UVulkanRenderDevice::DrawPresentTexture(int x, int y, int width, int height
}
else
{
float brightness = GIsEditor ? 1.0f : Clamp(Viewport->GetOuterUClient()->Brightness * 2.0, 0.05, 2.99);
float brightness = Clamp(Viewport->GetOuterUClient()->Brightness * 2.0, 0.05, 2.99);

if (GammaMode == 0)
{
Expand Down

0 comments on commit 517e3e6

Please sign in to comment.