Skip to content

Commit

Permalink
Use at least one BackBuffer in D3D8DeviceEx
Browse files Browse the repository at this point in the history
  • Loading branch information
WinterSnowfall committed Jan 23, 2023
1 parent 2e226a7 commit 2b61982
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/d3d8/d3d8_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ namespace dxvk {
D3DRS_PATCHSEGMENTS
);

// Mirrors how D3D9 handles the BackBufferCount
m_presentParams.BackBufferCount = std::max(m_presentParams.BackBufferCount, 1u);

m_textures.fill(nullptr);
m_streams.fill(D3D8VBO());

Expand Down Expand Up @@ -547,4 +550,4 @@ namespace dxvk {
return pPixelShader->GetFunction(pData, &SizeOfData);
}

} // namespace dxvk
} // namespace dxvk

0 comments on commit 2b61982

Please sign in to comment.