mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-14 22:29:15 +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:
parent
582b06a706
commit
38a0d2c552
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user