summaryrefslogtreecommitdiff
path: root/gsk
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2018-01-17 21:47:05 +0100
committerTimm Bäder <mail@baedert.org>2018-01-17 21:57:20 +0100
commit5e7b3030b913b82ddd9e54d49028b0c6dce75211 (patch)
tree16b18d35a625dbfb27a269fd041cb2e3a8bbbaf9 /gsk
parent7c47c7cdaf5262e1c4ae7941b86230bef11c9b30 (diff)
downloadgtk+-5e7b3030b913b82ddd9e54d49028b0c6dce75211.tar.gz
rendernodeimpl: Fix a crash
We may get a NULL renderer here.
Diffstat (limited to 'gsk')
-rw-r--r--gsk/gskrendernodeimpl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gsk/gskrendernodeimpl.c b/gsk/gskrendernodeimpl.c
index f78226c8d4..39982887a9 100644
--- a/gsk/gskrendernodeimpl.c
+++ b/gsk/gskrendernodeimpl.c
@@ -1953,7 +1953,7 @@ gsk_cairo_node_get_draw_context (GskRenderNode *node,
node->bounds.size.width, node->bounds.size.height);
cairo_clip (res);
- if (GSK_RENDERER_DEBUG_CHECK (renderer, SURFACE))
+ if (renderer && GSK_RENDERER_DEBUG_CHECK (renderer, SURFACE))
{
const char *prefix;
prefix = g_getenv ("GSK_DEBUG_PREFIX");