summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/cso_cache/cso_cache.c
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2008-04-21 19:11:58 +0100
committerKeith Whitwell <keith@tungstengraphics.com>2008-04-21 19:12:08 +0100
commit785831fc6fc56815d9637c7dd2acbcee6dfbbb0a (patch)
tree1a22e4e7e344ee5a7ad982c735ded170bbb78ccf /src/gallium/auxiliary/cso_cache/cso_cache.c
parentd3db46eb8257c1b0cf823f1805ca00457be9aff3 (diff)
downloadexternal_mesa3d-785831fc6fc56815d9637c7dd2acbcee6dfbbb0a.zip
external_mesa3d-785831fc6fc56815d9637c7dd2acbcee6dfbbb0a.tar.gz
external_mesa3d-785831fc6fc56815d9637c7dd2acbcee6dfbbb0a.tar.bz2
cso: propogate one easy error - many more
Diffstat (limited to 'src/gallium/auxiliary/cso_cache/cso_cache.c')
-rw-r--r--src/gallium/auxiliary/cso_cache/cso_cache.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/cso_cache/cso_cache.c b/src/gallium/auxiliary/cso_cache/cso_cache.c
index 18acab0..f607528 100644
--- a/src/gallium/auxiliary/cso_cache/cso_cache.c
+++ b/src/gallium/auxiliary/cso_cache/cso_cache.c
@@ -290,6 +290,8 @@ void * cso_take_state(struct cso_cache *sc,
struct cso_cache *cso_cache_create(void)
{
struct cso_cache *sc = MALLOC_STRUCT(cso_cache);
+ if (sc == NULL)
+ return NULL;
sc->max_size = 4096;
sc->blend_hash = cso_hash_create();