[gtk+/wip/baedert/gl: 49/111] gl ops: Remove dead code
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/gl: 49/111] gl ops: Remove dead code
- Date: Thu, 21 Dec 2017 17:33:16 +0000 (UTC)
commit 1605691d78826c85f6fc5ba0f5f306f5d9124d0d
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]