From 2f7c80495250612c88adaa479f7335583dbc3ba2 Mon Sep 17 00:00:00 2001 From: Brian Date: Wed, 30 Jan 2008 08:08:23 -0700 Subject: check if fb->Delete is null (bugs 13507,14293) --- src/mesa/main/context.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index c793e07b3a..e3096b5f96 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); } /** -- cgit v1.2.3