projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a8b908
)
added null ptr check (fix bug 16959)
author
Brian Paul
<brian.paul@tungstengraphics.com>
Sun, 3 Aug 2008 17:14:47 +0000
(11:14 -0600)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Sun, 3 Aug 2008 17:14:47 +0000
(11:14 -0600)
src/mesa/main/context.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/context.c
b/src/mesa/main/context.c
index 279880cf4019a5d75fbf9e59489ae8f134aff8d0..27e5e2fcce90594e59ee5e1ec857508485b76c8d 100644
(file)
--- 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);
}