diff options
| author | JMC47 <JMC4789@gmail.com> | 2019-03-12 04:40:09 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-12 04:40:09 -0400 |
| commit | 88ee78125747ae4f79832952e81fd82c2b71a865 (patch) | |
| tree | 24439d21737c07ba20461792809c8fecfdd03ab4 /Source/Core/VideoCommon/FramebufferManager.cpp | |
| parent | 22e7419747cf629c185546052006872f6d4838d6 (diff) | |
| parent | cce7ac43d4187feca6179c7d0f5f1d57cda96564 (diff) | |
Merge pull request #7877 from stenzek/efb-poke-panic
FramebufferManager: Fix panic in VertexManager with large EFB depth poke batches
Diffstat (limited to 'Source/Core/VideoCommon/FramebufferManager.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/FramebufferManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/FramebufferManager.cpp b/Source/Core/VideoCommon/FramebufferManager.cpp index 489ce62292..c3c41af2c7 100644 --- a/Source/Core/VideoCommon/FramebufferManager.cpp +++ b/Source/Core/VideoCommon/FramebufferManager.cpp @@ -705,7 +705,7 @@ void FramebufferManager::PokeEFBColor(u32 x, u32 y, u32 color) void FramebufferManager::PokeEFBDepth(u32 x, u32 y, float depth) { // Flush if we exceeded the number of vertices per batch. - if ((m_color_poke_vertices.size() + 6) > MAX_POKE_VERTICES) + if ((m_depth_poke_vertices.size() + 6) > MAX_POKE_VERTICES) FlushEFBPokes(); CreatePokeVertices(&m_depth_poke_vertices, x, y, depth, 0); |
