mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
VideoCommon: Output gamma now comes from the xfb copy
This commit is contained in:
@ -233,7 +233,7 @@ static void BPWritten(const BPCmd& bp)
|
||||
bool is_depth_copy = bpmem.zcontrol.pixel_format == PEControl::Z24;
|
||||
g_texture_cache->CopyRenderTargetToTexture(destAddr, PE_copy.tp_realFormat(), destStride,
|
||||
is_depth_copy, srcRect, !!PE_copy.intensity_fmt,
|
||||
!!PE_copy.half_scale, 1.0f);
|
||||
!!PE_copy.half_scale, 1.0f, 1.0f);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -262,7 +262,7 @@ static void BPWritten(const BPCmd& bp)
|
||||
bool is_depth_copy = bpmem.zcontrol.pixel_format == PEControl::Z24;
|
||||
g_texture_cache->CopyRenderTargetToTexture(destAddr, EFBCopyFormat::XFB, destStride,
|
||||
is_depth_copy, srcRect, false,
|
||||
false, yScale);
|
||||
false, yScale, s_gammaLUT[PE_copy.gamma]);
|
||||
|
||||
// This stays in to signal end of a "frame"
|
||||
g_renderer->RenderToXFB(destAddr, srcRect, destStride, height, s_gammaLUT[PE_copy.gamma]);
|
||||
@ -270,7 +270,7 @@ static void BPWritten(const BPCmd& bp)
|
||||
if (g_ActiveConfig.bImmediateXFB)
|
||||
{
|
||||
// below div two to convert from bytes to pixels - it expects width, not stride
|
||||
g_renderer->Swap(destAddr, destStride / 2, destStride / 2, height, false, srcRect, CoreTiming::GetTicks(), s_gammaLUT[PE_copy.gamma]);
|
||||
g_renderer->Swap(destAddr, destStride / 2, destStride / 2, height, false, srcRect, CoreTiming::GetTicks());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user