[gtk+/wip/baedert/gl: 59/96] gl ops: Remove dead code
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/gl: 59/96] gl ops: Remove dead code
- Date: Wed, 6 Dec 2017 16:34:39 +0000 (UTC)
commit 9dfd5bc664276bf4ba44677e8eac5ccfb2d00708
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]