Merge pull request #7877 from stenzek/efb-poke-panic

FramebufferManager: Fix panic in VertexManager with large EFB depth poke batches
This commit is contained in:
JMC47 2019-03-12 04:40:09 -04:00 committed by GitHub
commit 88ee781257
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -705,7 +705,7 @@ void FramebufferManager::PokeEFBColor(u32 x, u32 y, u32 color)
void FramebufferManager::PokeEFBDepth(u32 x, u32 y, float depth) void FramebufferManager::PokeEFBDepth(u32 x, u32 y, float depth)
{ {
// Flush if we exceeded the number of vertices per batch. // 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(); FlushEFBPokes();
CreatePokeVertices(&m_depth_poke_vertices, x, y, depth, 0); CreatePokeVertices(&m_depth_poke_vertices, x, y, depth, 0);