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

index 279880cf4019a5d75fbf9e59489ae8f134aff8d0..27e5e2fcce90594e59ee5e1ec857508485b76c8d 100644 (file)
@@ -711,7 +711,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);
 }