[gtk+/wip/baedert/gl: 40/85] gl ops: Remove dead code



commit 171aa900fa87b23ad648b4c5e66b6c3b801ebab3
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 6bc9e82..3a001af 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]