Skip to content

Commit db02990

Browse files
authored
Partially revert 5979b21 in order to fix MGSV. (#368)
1 parent 63501d3 commit db02990

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/render/dxgi/dxgi_swapchain.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -774,9 +774,9 @@ IWrapDXGISwapChain::GetBuffer (UINT Buffer, REFIID riid, void **ppSurface)
774774
texDesc.Width == swapDesc.BufferDesc.Width &&
775775
texDesc.Height == swapDesc.BufferDesc.Height &&
776776
DirectX::MakeTypeless ( texDesc.Format) ==
777-
DirectX::MakeTypeless (swapDesc.BufferDesc.Format) && !rb.active_traits.bOriginallysRGB )
778-
//std::exchange (flip_model.last_srgb_mode, config.render.dxgi.srgb_behavior) ==
779-
// config.render.dxgi.srgb_behavior )
777+
DirectX::MakeTypeless (swapDesc.BufferDesc.Format) &&
778+
std::exchange (flip_model.last_srgb_mode, config.render.dxgi.srgb_behavior) ==
779+
config.render.dxgi.srgb_behavior )
780780
{
781781
return
782782
_backbuffers [Buffer]->QueryInterface (riid, ppSurface);

0 commit comments

Comments
 (0)