rendernodeimpl: Fix a crash

We may get a NULL renderer here.
This commit is contained in:
Timm Bäder 2018-01-17 21:47:05 +01:00
parent 7c47c7cdaf
commit 5e7b3030b9

View File

@ -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");