[gtk/wip/chergert/glproto: 358/493] ignore debug groups unless G_ENABLE_DEBUG




commit ba7ce67ae1d77052ee1a315a3700ee03f0639ff9
Author: Christian Hergert <chergert redhat com>
Date:   Tue Feb 2 22:41:16 2021 -0800

    ignore debug groups unless G_ENABLE_DEBUG

 gsk/next/gskglcommandqueue.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/gsk/next/gskglcommandqueue.c b/gsk/next/gskglcommandqueue.c
index 50c5d02d5c..4d19484179 100644
--- a/gsk/next/gskglcommandqueue.c
+++ b/gsk/next/gskglcommandqueue.c
@@ -568,6 +568,7 @@ void
 gsk_gl_command_queue_push_debug_group (GskGLCommandQueue *self,
                                        const char        *debug_group)
 {
+#ifdef G_ENABLE_DEBUG
   GskGLCommandBatch *batch;
 
   g_assert (GSK_IS_GL_COMMAND_QUEUE (self));
@@ -581,11 +582,13 @@ gsk_gl_command_queue_push_debug_group (GskGLCommandQueue *self,
   batch->any.program = 0;
 
   enqueue_batch (self);
+#endif
 }
 
 void
 gsk_gl_command_queue_pop_debug_group (GskGLCommandQueue *self)
 {
+#ifdef G_ENABLE_DEBUG
   GskGLCommandBatch *batch;
 
   g_assert (GSK_IS_GL_COMMAND_QUEUE (self));
@@ -599,6 +602,7 @@ gsk_gl_command_queue_pop_debug_group (GskGLCommandQueue *self)
   batch->any.program = 0;
 
   enqueue_batch (self);
+#endif
 }
 
 GdkGLContext *


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]