gl renderer: Remove superfluous modelview matrix changes

This commit is contained in:
Timm Bäder 2017-12-03 20:16:01 +01:00
parent 1fce25c7af
commit 5cdd46e38e

View File

@ -97,6 +97,10 @@ ops_set_modelview (RenderOpBuilder *builder,
graphene_matrix_t prev_mv;
RenderOp *last_op;
if (memcmp (&builder->program_state[builder->current_program->index].modelview, modelview,
sizeof (graphene_matrix_t)) == 0)
return *modelview;
last_op = &g_array_index (builder->render_ops, RenderOp, builder->render_ops->len - 1);
if (last_op->op == OP_CHANGE_MODELVIEW)
{