Skip to content

Commit

Permalink
[d3d8] ResetState: textures, streams, indices
Browse files Browse the repository at this point in the history
  • Loading branch information
AlpyneDreams committed Jan 3, 2023
1 parent 1232f6b commit d0f5903
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/d3d8/d3d8_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -813,6 +813,9 @@ namespace dxvk {
inline void ResetState() {
// Purge cached objects
m_backBuffers.clear();
m_textures.fill(nullptr);
m_streams.fill(D3D8VBO());
m_indices = nullptr;
for (UINT i = 0; i < m_presentParams.BackBufferCount; i++) {
m_backBuffers.push_back(nullptr);
}
Expand Down

0 comments on commit d0f5903

Please sign in to comment.