mirror of https://github.com/PCSX2/pcsx2.git
gsdx ogl: Deleted objects are automatically unbound/unmapped
This commit is contained in:
parent
12d2c6be56
commit
dad4ab1980
|
@ -98,11 +98,6 @@ namespace PboPool {
|
|||
m_map = NULL;
|
||||
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++) {
|
||||
glDeleteSync(m_fence[i]);
|
||||
}
|
||||
|
|
|
@ -160,8 +160,6 @@ public:
|
|||
}
|
||||
|
||||
~GSUniformBufferStorageOGL() {
|
||||
bind();
|
||||
glUnmapBuffer(GL_UNIFORM_BUFFER);
|
||||
glDeleteBuffers(1, &m_buffer);
|
||||
}
|
||||
};
|
||||
|
|
|
@ -87,9 +87,6 @@ class GSBufferOGL {
|
|||
for (size_t i = 0; i < 5; i++) {
|
||||
glDeleteSync(m_fence[i]);
|
||||
}
|
||||
// Don't know if we must do it
|
||||
bind();
|
||||
glUnmapBuffer(m_target);
|
||||
glDeleteBuffers(1, &m_buffer_name);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue