diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-08-12 10:34:10 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-08-12 12:05:43 +0100 |
commit | dc18eaa585c36c8e5f5b4ec405a976a835fd2ac3 (patch) | |
tree | faf1b626b9d8b4986e5b035a176304fe253d8d3b /src/sna/sna_gradient.c | |
parent | b580abdfa68108f3e63ee1f897b6ea83b9c47935 (diff) |
sna: Make the failure to create render caches non-fatal
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_gradient.c')
-rw-r--r-- | src/sna/sna_gradient.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sna/sna_gradient.c b/src/sna/sna_gradient.c index a364c11f..5f06fbc8 100644 --- a/src/sna/sna_gradient.c +++ b/src/sna/sna_gradient.c @@ -382,6 +382,9 @@ bool sna_gradients_create(struct sna *sna) { DBG(("%s\n", __FUNCTION__)); + if (!can_render(sna)) + return true; + if (!sna_alpha_cache_init(sna)) return false; |