From 25c05867d6f1192f9f903d57dcb41e0b571075ae Mon Sep 17 00:00:00 2001 From: kd-11 Date: Thu, 2 Jun 2022 23:36:31 +0300 Subject: [PATCH] gl: Fix ring buffer remove() function - Fixes crash on running a second game in the same session --- rpcs3/Emu/RSX/GL/glutils/ring_buffer.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/rpcs3/Emu/RSX/GL/glutils/ring_buffer.cpp b/rpcs3/Emu/RSX/GL/glutils/ring_buffer.cpp index 75bb6ed57e..f7d02882c3 100644 --- a/rpcs3/Emu/RSX/GL/glutils/ring_buffer.cpp +++ b/rpcs3/Emu/RSX/GL/glutils/ring_buffer.cpp @@ -69,12 +69,7 @@ namespace gl m_size = 0; } - - if (m_id != GL_NONE) - { - glDeleteBuffers(1, &m_id); - m_id = GL_NONE; - } + buffer::remove(); } void ring_buffer::notify()