OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9bf3e4
)
added null ptr check (fix bug 16959)
author
Brian Paul
<brian.paul@tungstengraphics.com>
Sun, 3 Aug 2008 17:13:12 +0000
(11:13 -0600)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Sun, 3 Aug 2008 17:13:12 +0000
(11:13 -0600)
src/mesa/main/context.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/context.c
b/src/mesa/main/context.c
index
3dec27b
..
aa9d112
100644
(file)
--- 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);
}