From: Brian Date: Wed, 30 Jan 2008 15:08:23 +0000 (-0700) Subject: check if fb->Delete is null (bugs 13507,14293) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2f7c80495250612c88adaa479f7335583dbc3ba2;p=mesa.git check if fb->Delete is null (bugs 13507,14293) --- diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index c793e07b3ad..e3096b5f968 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -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); } /**