mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-07 03:32:42 +02:00
More PR comments
This commit is contained in:
parent
37cf37e3e1
commit
700c6519bf
1 changed files with 3 additions and 3 deletions
|
@ -88,10 +88,10 @@ bool GLESBackend::bindResourceBuffer(uint32_t slot, const BufferPointer& buffer)
|
|||
}
|
||||
|
||||
void GLESBackend::releaseResourceBuffer(uint32_t slot) {
|
||||
auto& buf = _resource._buffers[slot];
|
||||
if (buf) {
|
||||
auto& bufferReference = _resource._buffers[slot];
|
||||
if (valid(bufferReference)) {
|
||||
glBindBufferBase(GL_SHADER_STORAGE_BUFFER, slot, 0);
|
||||
reset(buf);
|
||||
reset(bufferReference);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue