From: Brian Date: Wed, 30 Jan 2008 15:08:23 +0000 (-0700) Subject: check if fb->Delete is null (bugs 13507,14293) X-Git-Tag: mesa-7.8~5663 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2f7c80495250612c88adaa479f7335583dbc3ba2;p=platform%2Fupstream%2Fmesa.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 c793e07..e3096b5 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); } /**