[gtk+/wip/baedert/gl: 48/66] gl ops: Remove dead code



commit 9758a7e2db35a27b5337c225e7ffecc54efe2b68
Author: Timm Bäder <mail baedert org>
Date:   Thu Nov 23 20:01:15 2017 +0100

    gl ops: Remove dead code
    
    This is already checked further up in that function

 gsk/gl/gskglrenderops.c |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/gsk/gl/gskglrenderops.c b/gsk/gl/gskglrenderops.c
index 5fa67fd..31dc8d4 100644
--- a/gsk/gl/gskglrenderops.c
+++ b/gsk/gl/gskglrenderops.c
@@ -56,15 +56,6 @@ ops_set_program (RenderOpBuilder *builder,
       g_array_append_val (builder->render_ops, op);
       builder->program_state[program->index].clip = builder->current_clip;
     }
-
-  if (graphene_rect_equal (&empty_rect, &builder->program_state[program->index].viewport) ||
-      !graphene_rect_equal (&builder->current_viewport, &builder->program_state[program->index].viewport))
-    {
-      op.op = OP_CHANGE_VIEWPORT;
-      op.viewport = builder->current_viewport;
-      g_array_append_val (builder->render_ops, op);
-      builder->program_state[program->index].viewport = builder->current_viewport;
-    }
 }
 
 GskRoundedRect


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]