forked from AuroraMiddleware/gtk
gl renderer: Remove superfluous modelview matrix changes
This commit is contained in:
parent
1fce25c7af
commit
5cdd46e38e
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user