diff options
author | Brian <[email protected]> | 2008-01-30 08:08:23 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2008-01-30 08:12:42 -0700 |
commit | 2f7c80495250612c88adaa479f7335583dbc3ba2 (patch) | |
tree | 20f991305d4506e154dbfa64cb430d7db8c7cdd6 /src/mesa/main/context.c | |
parent | 80efe27560134510dce88a52729e5a3d93e8e275 (diff) |
check if fb->Delete is null (bugs 13507,14293)
Diffstat (limited to 'src/mesa/main/context.c')
-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 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); } /** |