[gtk/wip/chergert/glproto: 475/493] Revert "remove dead code"
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/glproto: 475/493] Revert "remove dead code"
- Date: Fri, 19 Feb 2021 02:25:24 +0000 (UTC)
commit 3e8935da0f9f4a606e80bfdbfb603ec8561a623e
Author: Christian Hergert <chergert redhat com>
Date: Tue Feb 16 17:24:54 2021 -0800
Revert "remove dead code"
This reverts commit b4750086e0953a62bc8a1be1ba03a0cc0aed81d5.
gsk/next/gskglcommandqueue.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/gsk/next/gskglcommandqueue.c b/gsk/next/gskglcommandqueue.c
index 4f09946243..921e87835f 100644
--- a/gsk/next/gskglcommandqueue.c
+++ b/gsk/next/gskglcommandqueue.c
@@ -435,6 +435,7 @@ gsk_gl_command_queue_begin_draw (GskGLCommandQueue *self,
void
gsk_gl_command_queue_end_draw (GskGLCommandQueue *self)
{
+ GskGLCommandBatch *last_batch;
GskGLCommandBatch *batch;
g_assert (GSK_IS_GL_COMMAND_QUEUE (self));
@@ -479,6 +480,11 @@ gsk_gl_command_queue_end_draw (GskGLCommandQueue *self)
batch->draw.bind_count = 0;
}
+ if (self->batches.len > 1)
+ last_batch = &self->batches.elements[self->batches.len - 2];
+ else
+ last_batch = NULL;
+
enqueue_batch (self);
self->in_draw = FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]