GPU/HW: Fix potential crash in rectangle expansion

This commit is contained in:
Connor McLaughlin
2020-02-28 22:58:31 +10:00
parent a298e93004
commit 0690491883
2 changed files with 23 additions and 7 deletions

View File

@ -132,6 +132,7 @@ protected:
u32 GetBatchVertexSpace() const { return static_cast<u32>(m_batch_end_vertex_ptr - m_batch_current_vertex_ptr); }
u32 GetBatchVertexCount() const { return static_cast<u32>(m_batch_current_vertex_ptr - m_batch_start_vertex_ptr); }
void EnsureVertexBufferSpace(u32 required_vertices);
bool IsFlushed() const { return m_batch_current_vertex_ptr == m_batch_start_vertex_ptr; }