mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
check if fb->Delete is null (bugs 13507,14293)
This commit is contained in:
parent
a107ec8300
commit
2deaf93d24
1 changed files with 6 additions and 1 deletions
|
|
@ -640,7 +640,12 @@ delete_framebuffer_cb(GLuint id, void *data, void *userData)
|
|||
*/
|
||||
/*assert(fb->RefCount == 1);*/
|
||||
fb->RefCount = 0;
|
||||
fb->Delete(fb);
|
||||
|
||||
/* NOTE: Delete should always be defined but there are two reports
|
||||
* of it being NULL (bugs 13507, 14293). Work-around for now.
|
||||
*/
|
||||
if (fb->Delete)
|
||||
fb->Delete(fb);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue