GS/OpenGL: Don't delete null objects for PBO

This commit is contained in:
Connor McLaughlin 2021-12-18 17:50:09 +10:00 committed by refractionpcsx2
parent f412b6818e
commit 97727cae2c
1 changed files with 10 additions and 2 deletions

View File

@ -100,10 +100,18 @@ namespace PboPool
for (GLsync fence : m_fence)
{
glDeleteSync(fence);
if (fence != 0)
{
glDeleteSync(fence);
fence = 0;
}
}
glDeleteBuffers(1, &m_buffer);
if (m_buffer != 0)
{
glDeleteBuffers(1, &m_buffer);
m_buffer = 0;
}
}
void BindPbo()