diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2022-12-29 02:59:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-29 02:59:23 +0100 |
commit | 9fdacb5e3a03928a5671670d0db1e0058daf344e (patch) | |
tree | 286cf97c02dc915ba828da1f6a0fa4dc5440e795 /src/video_core/buffer_cache | |
parent | Merge pull request #9504 from liamwhite/pg2 (diff) | |
parent | video_core: Implement other missing vulkan topology (diff) | |
download | yuzu-9fdacb5e3a03928a5671670d0db1e0058daf344e.tar yuzu-9fdacb5e3a03928a5671670d0db1e0058daf344e.tar.gz yuzu-9fdacb5e3a03928a5671670d0db1e0058daf344e.tar.bz2 yuzu-9fdacb5e3a03928a5671670d0db1e0058daf344e.tar.lz yuzu-9fdacb5e3a03928a5671670d0db1e0058daf344e.tar.xz yuzu-9fdacb5e3a03928a5671670d0db1e0058daf344e.tar.zst yuzu-9fdacb5e3a03928a5671670d0db1e0058daf344e.zip |
Diffstat (limited to 'src/video_core/buffer_cache')
-rw-r--r-- | src/video_core/buffer_cache/buffer_cache.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/video_core/buffer_cache/buffer_cache.h b/src/video_core/buffer_cache/buffer_cache.h index 6c8d98946..f1c60d1f3 100644 --- a/src/video_core/buffer_cache/buffer_cache.h +++ b/src/video_core/buffer_cache/buffer_cache.h @@ -666,9 +666,10 @@ void BufferCache<P>::BindHostGeometryBuffers(bool is_indexed) { BindHostIndexBuffer(); } else if constexpr (!HAS_FULL_INDEX_AND_PRIMITIVE_SUPPORT) { const auto& draw_state = maxwell3d->draw_manager->GetDrawState(); - if (draw_state.topology == Maxwell::PrimitiveTopology::Quads) { - runtime.BindQuadArrayIndexBuffer(draw_state.vertex_buffer.first, - draw_state.vertex_buffer.count); + if (draw_state.topology == Maxwell::PrimitiveTopology::Quads || + draw_state.topology == Maxwell::PrimitiveTopology::QuadStrip) { + runtime.BindQuadIndexBuffer(draw_state.topology, draw_state.vertex_buffer.first, + draw_state.vertex_buffer.count); } } BindHostVertexBuffers(); |