added null ptr check (fix bug 16959)
authorBrian Paul <brian.paul@tungstengraphics.com>
Sun, 3 Aug 2008 17:13:12 +0000 (11:13 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Sun, 3 Aug 2008 17:13:12 +0000 (11:13 -0600)
src/mesa/main/context.c

index 3dec27b6bd112a487443af6deb061471bd1b7952..aa9d11299961a1c31f73d40b2365974e1c92867d 100644 (file)
@@ -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);
 }