[gtk/wip/baedert/gl-rework: 41/41] gl renderer: Avoid copying a matrix
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/gl-rework: 41/41] gl renderer: Avoid copying a matrix
- Date: Fri, 20 Dec 2019 09:56:06 +0000 (UTC)
commit dfa4f6f60972e2213e560d5d43217edb1e5e6e08
Author: Timm Bäder <mail baedert org>
Date: Thu Dec 19 13:03:22 2019 +0100
gl renderer: Avoid copying a matrix
gsk/gl/gskglrenderops.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/gsk/gl/gskglrenderops.c b/gsk/gl/gskglrenderops.c
index de326db30c..a4b7786d30 100644
--- a/gsk/gl/gskglrenderops.c
+++ b/gsk/gl/gskglrenderops.c
@@ -369,7 +369,6 @@ ops_set_modelview_internal (RenderOpBuilder *builder,
GskTransform *transform)
{
ProgramState *current_program_state = get_current_program_state (builder);
- graphene_matrix_t matrix;
OpMatrix *op;
#if 0
@@ -379,12 +378,10 @@ ops_set_modelview_internal (RenderOpBuilder *builder,
return;
#endif
- gsk_transform_to_matrix (transform, &matrix);
-
if (!(op = op_buffer_peek_tail_checked (&builder->render_ops, OP_CHANGE_MODELVIEW)))
op = op_buffer_add (&builder->render_ops, OP_CHANGE_MODELVIEW);
- op->matrix = matrix;
+ gsk_transform_to_matrix (transform, &op->matrix);
if (builder->current_program != NULL)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]