summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2008-01-30 08:10:57 -0700
committerBrian <brian.paul@tungstengraphics.com>2008-01-30 08:12:06 -0700
commit2deaf93d24af36718666f973c562b2520e9142d2 (patch)
treee69fe368dff90170cfba9feb2b91cd8a26309b7d /src
parenta107ec8300c6df3dc6ee636ccfd469c820b00190 (diff)
check if fb->Delete is null (bugs 13507,14293)
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/context.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index b599638c771..ce634712c92 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -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);
}
/**