Skip to content

Commit

Permalink
[d3d9] Don't check for sRGB formats when retrieving back buffer view
Browse files Browse the repository at this point in the history
Turns out this is always false anyway.
  • Loading branch information
doitsujin committed Jan 24, 2020
1 parent 582b06a commit 38a0d2c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/d3d9/d3d9_swapchain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -624,10 +624,8 @@ namespace dxvk {
auto swapImage = m_backBuffers[0]->GetCommonTexture()->GetImage();
auto swapImageView = m_resolveImageView;

if (swapImageView == nullptr) {
bool isSrgb = swapImage->formatInfo()->flags.test(DxvkFormatFlag::ColorSpaceSrgb);
swapImageView = m_backBuffers[0]->GetImageView(isSrgb);
}
if (swapImageView == nullptr)
swapImageView = m_backBuffers[0]->GetImageView(false);

// Wait for the sync event so that we respect the maximum frame latency
uint64_t frameId = ++m_frameId;
Expand Down

0 comments on commit 38a0d2c

Please sign in to comment.