summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines/maxwell_3d.cpp
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2023-11-18 19:26:14 +0100
committerFernando Sahmkow <fsahmkow27@gmail.com>2023-11-18 19:26:14 +0100
commitae60a5657e8262472754e3b6583a5a1c59522f0e (patch)
tree19bc1f82ca33bb7474b3f1558fe88b60592e39e3 /src/video_core/engines/maxwell_3d.cpp
parentshader_recompiler: Fix spelling of "derivate" (#12067) (diff)
downloadyuzu-ae60a5657e8262472754e3b6583a5a1c59522f0e.tar
yuzu-ae60a5657e8262472754e3b6583a5a1c59522f0e.tar.gz
yuzu-ae60a5657e8262472754e3b6583a5a1c59522f0e.tar.bz2
yuzu-ae60a5657e8262472754e3b6583a5a1c59522f0e.tar.lz
yuzu-ae60a5657e8262472754e3b6583a5a1c59522f0e.tar.xz
yuzu-ae60a5657e8262472754e3b6583a5a1c59522f0e.tar.zst
yuzu-ae60a5657e8262472754e3b6583a5a1c59522f0e.zip
Diffstat (limited to 'src/video_core/engines/maxwell_3d.cpp')
-rw-r--r--src/video_core/engines/maxwell_3d.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp
index 32d767d85..592c28ba3 100644
--- a/src/video_core/engines/maxwell_3d.cpp
+++ b/src/video_core/engines/maxwell_3d.cpp
@@ -268,7 +268,7 @@ size_t Maxwell3D::EstimateIndexBufferSize() {
std::numeric_limits<u32>::max()};
const size_t byte_size = regs.index_buffer.FormatSizeInBytes();
const size_t log2_byte_size = Common::Log2Ceil64(byte_size);
- const size_t cap{GetMaxCurrentVertices() * 3 * byte_size};
+ const size_t cap{GetMaxCurrentVertices() * 4 * byte_size};
const size_t lower_cap =
std::min<size_t>(static_cast<size_t>(end_address - start_address), cap);
return std::min<size_t>(