summaryrefslogtreecommitdiffstats
path: root/src/video_core/buffer_cache
diff options
context:
space:
mode:
authorFengChen <vonchenplus@gmail.com>2022-12-12 15:17:33 +0100
committerFengChen <vonchenplus@gmail.com>2022-12-26 04:37:34 +0100
commit86d5b4e556072e86b9af3ac8a4ef6842a8d9df67 (patch)
tree238ea02d1aba2663e5a94ae5664812290b2a6326 /src/video_core/buffer_cache
parentMerge pull request #9420 from liamwhite/aniso (diff)
downloadyuzu-86d5b4e556072e86b9af3ac8a4ef6842a8d9df67.tar
yuzu-86d5b4e556072e86b9af3ac8a4ef6842a8d9df67.tar.gz
yuzu-86d5b4e556072e86b9af3ac8a4ef6842a8d9df67.tar.bz2
yuzu-86d5b4e556072e86b9af3ac8a4ef6842a8d9df67.tar.lz
yuzu-86d5b4e556072e86b9af3ac8a4ef6842a8d9df67.tar.xz
yuzu-86d5b4e556072e86b9af3ac8a4ef6842a8d9df67.tar.zst
yuzu-86d5b4e556072e86b9af3ac8a4ef6842a8d9df67.zip
Diffstat (limited to 'src/video_core/buffer_cache')
-rw-r--r--src/video_core/buffer_cache/buffer_cache.h7
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 502b4d90a..158360830 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();