summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-08-03 11:14:47 -0600
committerBrian Paul <[email protected]>2008-08-03 11:14:47 -0600
commiteb80ed0d2eac693012e7e4c2ad772f7f57f74977 (patch)
tree5c565bf50e6e54560e3997bbac95dd4790e143a2
parent4a8b908a46375ea2543a81bdd8d5b313d807f140 (diff)
added null ptr check (fix bug 16959)
-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 279880cf401..27e5e2fcce9 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -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);
}