gl renderer: Dont' unnecessarily to_matrix transforms

This commit is contained in:
Timm Bäder 2019-06-03 15:54:13 +02:00
parent 6560a35c9c
commit fb1f929c38

View File

@ -339,12 +339,12 @@ ops_set_modelview_internal (RenderOpBuilder *builder,
RenderOp op;
graphene_matrix_t matrix;
gsk_transform_to_matrix (transform, &matrix);
if (builder->current_program &&
gsk_transform_equal (builder->current_program_state->modelview, transform))
return;
gsk_transform_to_matrix (transform, &matrix);
if (builder->render_ops->len > 0)
{
RenderOp *last_op = &g_array_index (builder->render_ops, RenderOp, builder->render_ops->len - 1);