gl renderer: Dont' memcmp() a GskTransform

This commit is contained in:
Timm Bäder 2019-06-03 17:07:26 +02:00
parent 88344ccf4e
commit a0cb68283d

View File

@ -219,7 +219,7 @@ ops_set_program (RenderOpBuilder *builder,
program_state->projection = builder->current_projection;
}
if (memcmp (&empty_matrix, &program_state->modelview, sizeof (graphene_matrix_t)) == 0 ||
if (program_state->modelview == NULL ||
!gsk_transform_equal (builder->current_modelview, program_state->modelview))
{
op.op = OP_CHANGE_MODELVIEW;