projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge commit 'origin/mesa_7_7_branch'
[mesa.git]
/
src
/
gallium
/
auxiliary
/
pipebuffer
/
pb_bufmgr_ondemand.c
diff --git
a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_ondemand.c
b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_ondemand.c
index bc3093f620fe5a8ed83ca20d396f100958f97e9a..cb32d251367f4cc246b0bb3e4388dc6538b95c40 100644
(file)
--- a/
src/gallium/auxiliary/pipebuffer/pb_bufmgr_ondemand.c
+++ b/
src/gallium/auxiliary/pipebuffer/pb_bufmgr_ondemand.c
@@
-74,6
+74,8
@@
static INLINE struct pb_ondemand_buffer *
pb_ondemand_buffer(struct pb_buffer *buf)
{
assert(buf);
+ if (!buf)
+ return NULL;
assert(buf->vtbl == &pb_ondemand_buffer_vtbl);
return (struct pb_ondemand_buffer *)buf;
}