[gtk+/wip/baedert/gl: 9/15] gl ops: Remove dead code
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/gl: 9/15] gl ops: Remove dead code
- Date: Fri, 24 Nov 2017 13:33:49 +0000 (UTC)
commit 313c318c0622fa7aff7f2077e1c67ed0beb238e9
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]