mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 15:48:36 +02:00
fix a couple issues in _mesa_free_framebuffer_data()
This commit is contained in:
parent
c3c5652602
commit
460a375d85
1 changed files with 3 additions and 1 deletions
|
|
@ -223,9 +223,11 @@ _mesa_free_framebuffer_data(struct gl_framebuffer *fb)
|
|||
|
||||
for (i = 0; i < BUFFER_COUNT; i++) {
|
||||
struct gl_renderbuffer_attachment *att = &fb->Attachment[i];
|
||||
if (att->Type == GL_RENDERBUFFER_EXT && att->Renderbuffer) {
|
||||
if (att->Renderbuffer) {
|
||||
struct gl_renderbuffer *rb = att->Renderbuffer;
|
||||
_glthread_LOCK_MUTEX(rb->Mutex);
|
||||
rb->RefCount--;
|
||||
_glthread_UNLOCK_MUTEX(rb->Mutex);
|
||||
if (rb->RefCount == 0) {
|
||||
rb->Delete(rb);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue