[gtk/wip/chergert/glproto: 521/526] dont reorder if we end up at the same place
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/glproto: 521/526] dont reorder if we end up at the same place
- Date: Tue, 16 Feb 2021 01:14:40 +0000 (UTC)
commit 68dcd128f7b2040db08a2e1d298e99ccc8890475
Author: Christian Hergert <chergert redhat com>
Date: Sat Feb 13 11:51:16 2021 -0800
dont reorder if we end up at the same place
gsk/next/gskglcommandqueue.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gsk/next/gskglcommandqueue.c b/gsk/next/gskglcommandqueue.c
index 85e4c32170..6fdda74aff 100644
--- a/gsk/next/gskglcommandqueue.c
+++ b/gsk/next/gskglcommandqueue.c
@@ -921,7 +921,7 @@ gsk_gl_command_queue_sort_batches (GskGLCommandQueue *self)
g_assert (seen[fbo] >= -1);
g_assert (seen[fbo] < (int)self->n_batches);
- if (seen[fbo] != -1)
+ if (seen[fbo] != -1 && seen[fbo] != batch->any.next_batch_index)
{
int mru_index = seen[fbo];
GskGLCommandBatch *mru = &self->batches[mru_index];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]