1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-11-30 22:24:15 +01:00

[dxvk] Fixed incorrect framebuffer attachment formats

This commit is contained in:
Philip Rebohle 2018-01-27 12:26:31 +01:00
parent 59a4e80c5f
commit 4e780f4f60
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -12,7 +12,7 @@ namespace dxvk {
for (uint32_t i = 0; i < MaxNumRenderTargets; i++) {
if (m_colorTargets.at(i) != nullptr) {
result.setColorFormat(i, DxvkRenderTargetFormat {
m_colorTargets.at(i)->imageInfo().format,
m_colorTargets.at(i)->info().format,
m_colorTargets.at(i)->imageInfo().layout,
m_colorTargets.at(i)->imageInfo().layout });
result.setSampleCount(m_colorTargets.at(i)->image()->info().sampleCount);
@ -21,7 +21,7 @@ namespace dxvk {
if (m_depthTarget != nullptr) {
result.setDepthFormat(DxvkRenderTargetFormat {
m_depthTarget->imageInfo().format,
m_depthTarget->info().format,
m_depthTarget->imageInfo().layout,
m_depthTarget->imageInfo().layout });
result.setSampleCount(m_depthTarget->image()->info().sampleCount);