diff options
author | Brian <[email protected]> | 2008-01-30 08:10:57 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2008-01-30 08:12:06 -0700 |
commit | 2deaf93d24af36718666f973c562b2520e9142d2 (patch) | |
tree | e69fe368dff90170cfba9feb2b91cd8a26309b7d /src/mesa | |
parent | a107ec8300c6df3dc6ee636ccfd469c820b00190 (diff) |
check if fb->Delete is null (bugs 13507,14293)
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/context.c | 7 |
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); } /** |