[gtk/wip/chergert/glproto: 425/526] give jumptable a chance to optimize out
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/glproto: 425/526] give jumptable a chance to optimize out
- Date: Tue, 16 Feb 2021 01:14:37 +0000 (UTC)
commit 690717aa6fcb6cbafb1bed2dc98915856da3d37a
Author: Christian Hergert <chergert redhat com>
Date: Tue Feb 2 23:10:37 2021 -0800
give jumptable a chance to optimize out
gsk/next/gskglcommandqueue.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/gsk/next/gskglcommandqueue.c b/gsk/next/gskglcommandqueue.c
index fd1f13cfe2..3ba893a2d2 100644
--- a/gsk/next/gskglcommandqueue.c
+++ b/gsk/next/gskglcommandqueue.c
@@ -875,11 +875,15 @@ gsk_gl_command_queue_execute (GskGLCommandQueue *self,
break;
case GSK_GL_COMMAND_KIND_PUSH_DEBUG_GROUP:
+#ifdef G_ENABLE_DEBUG
gdk_gl_context_push_debug_group (self->context, batch->debug_group.debug_group);
+#endif
break;
case GSK_GL_COMMAND_KIND_POP_DEBUG_GROUP:
+#ifdef G_ENABLE_DEBUG
gdk_gl_context_pop_debug_group (self->context);
+#endif
break;
case GSK_GL_COMMAND_KIND_DRAW:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]