gsdx ogl: Deleted objects are automatically unbound/unmapped

This commit is contained in:
Gregory Hainaut 2017-04-07 17:38:14 +02:00
parent 12d2c6be56
commit dad4ab1980
3 changed files with 0 additions and 10 deletions

View File

@ -98,11 +98,6 @@ namespace PboPool {
m_map = NULL; m_map = NULL;
m_offset = 0; m_offset = 0;
// Don't know if we must do it
glBindBuffer(GL_PIXEL_UNPACK_BUFFER, m_buffer);
glUnmapBuffer(GL_PIXEL_UNPACK_BUFFER);
glBindBuffer(GL_PIXEL_UNPACK_BUFFER, 0);
for (size_t i = 0; i < countof(m_fence); i++) { for (size_t i = 0; i < countof(m_fence); i++) {
glDeleteSync(m_fence[i]); glDeleteSync(m_fence[i]);
} }

View File

@ -160,8 +160,6 @@ public:
} }
~GSUniformBufferStorageOGL() { ~GSUniformBufferStorageOGL() {
bind();
glUnmapBuffer(GL_UNIFORM_BUFFER);
glDeleteBuffers(1, &m_buffer); glDeleteBuffers(1, &m_buffer);
} }
}; };

View File

@ -87,9 +87,6 @@ class GSBufferOGL {
for (size_t i = 0; i < 5; i++) { for (size_t i = 0; i < 5; i++) {
glDeleteSync(m_fence[i]); glDeleteSync(m_fence[i]);
} }
// Don't know if we must do it
bind();
glUnmapBuffer(m_target);
glDeleteBuffers(1, &m_buffer_name); glDeleteBuffers(1, &m_buffer_name);
} }