summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-08-03 11:13:12 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-08-03 11:13:12 -0600
commit61b3ce8f9787edd7d5678f87aa4c2a0a6f8c0e45 (patch)
tree841c7b1c92cfb7b40b68098da509eb772be57dc7 /src/mesa
parente9bf3e4cc9a7e4bcd4c45bd707541d26ecdf0409 (diff)
added null ptr check (fix bug 16959)
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/context.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index 3dec27b6bd..aa9d112999 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -683,7 +683,8 @@ delete_renderbuffer_cb(GLuint id, void *data, void *userData)
{
struct gl_renderbuffer *rb = (struct gl_renderbuffer *) data;
rb->RefCount = 0; /* see comment for FBOs above */
- rb->Delete(rb);
+ if (rb->Delete)
+ rb->Delete(rb);
}