Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #7877 from stenzek/efb-poke-panic
FramebufferManager: Fix panic in VertexManager with large EFB depth poke batches
  • Loading branch information
JMC47 committed Mar 12, 2019
2 parents 22e7419 + cce7ac4 commit 88ee781
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/VideoCommon/FramebufferManager.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 88ee781

Please sign in to comment.