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

This commit is contained in:
Brian
2008-01-30 08:08:23 -07:00
parent 80efe27560
commit 2f7c804952
+6 -1
View File
@@ -653,7 +653,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);
}
/**