gsk: Fix a crash
When we start ignoring batches, we must do it everywhere, or we may run into assertions. This was triggered by an enormous text node tree produced by tests/rendernode-create.
This commit is contained in:
@@ -721,6 +721,10 @@ gsk_gl_command_queue_split_draw (GskGLCommandQueue *self)
|
||||
|
||||
g_assert (GSK_IS_GL_COMMAND_QUEUE (self));
|
||||
g_assert (self->batches.len > 0);
|
||||
|
||||
if (will_ignore_batch (self))
|
||||
return;
|
||||
|
||||
g_assert (self->in_draw == TRUE);
|
||||
|
||||
program = self->program_info;
|
||||
|
||||
Reference in New Issue
Block a user