[gtk+/wip/baedert/gl: 76/90] gl renderer: Remove superflous modelview matrix changes
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/gl: 76/90] gl renderer: Remove superflous modelview matrix changes
- Date: Fri, 8 Dec 2017 20:16:15 +0000 (UTC)
commit 9d9801388eea9cfd49d9fc82b0d5cdcb3177b00f
Author: Timm Bäder <mail baedert org>
Date: Sun Dec 3 20:16:01 2017 +0100
gl renderer: Remove superflous modelview matrix changes
gsk/gl/gskglrenderops.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gsk/gl/gskglrenderops.c b/gsk/gl/gskglrenderops.c
index 517ce85..998b12a 100644
--- a/gsk/gl/gskglrenderops.c
+++ b/gsk/gl/gskglrenderops.c
@@ -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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]