1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-15 07:29:17 +01:00

[d3d9] Don't check for sRGB formats when retrieving back buffer view

Turns out this is always false anyway.
This commit is contained in:
Philip Rebohle 2020-01-24 01:47:52 +01:00
parent 582b06a706
commit 38a0d2c552
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -624,10 +624,8 @@ namespace dxvk {
auto swapImage = m_backBuffers[0]->GetCommonTexture()->GetImage(); auto swapImage = m_backBuffers[0]->GetCommonTexture()->GetImage();
auto swapImageView = m_resolveImageView; auto swapImageView = m_resolveImageView;
if (swapImageView == nullptr) { if (swapImageView == nullptr)
bool isSrgb = swapImage->formatInfo()->flags.test(DxvkFormatFlag::ColorSpaceSrgb); swapImageView = m_backBuffers[0]->GetImageView(false);
swapImageView = m_backBuffers[0]->GetImageView(isSrgb);
}
// Wait for the sync event so that we respect the maximum frame latency // Wait for the sync event so that we respect the maximum frame latency
uint64_t frameId = ++m_frameId; uint64_t frameId = ++m_frameId;