check if fb->Delete is null (bugs 13507,14293)

This commit is contained in:
Brian 2008-01-30 08:10:57 -07:00
parent a107ec8300
commit 2deaf93d24

View file

@ -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);
}
/**