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



commit a1ca7466a341a312ee36043a88f70c7d9f121904
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]