mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
FramebufferManager: Fix panic in VertexManager with large EFB depth poke batches
This commit is contained in:
parent
22e7419747
commit
cce7ac43d4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user