[gtk/wip/chergert/glproto] use assertions in some cases
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/glproto] use assertions in some cases
- Date: Mon, 1 Feb 2021 18:45:30 +0000 (UTC)
commit 254db459904a99665c3160ef5470d238498db410
Author: Christian Hergert <chergert redhat com>
Date: Mon Feb 1 10:35:00 2021 -0800
use assertions in some cases
we want this to all compile out
gsk/next/gskglcommandqueue.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gsk/next/gskglcommandqueue.c b/gsk/next/gskglcommandqueue.c
index 866a20790e..4c54a7dc19 100644
--- a/gsk/next/gskglcommandqueue.c
+++ b/gsk/next/gskglcommandqueue.c
@@ -347,9 +347,9 @@ gsk_gl_command_queue_begin_draw (GskGLCommandQueue *self,
{
GskGLCommandBatch *batch;
- g_return_if_fail (GSK_IS_GL_COMMAND_QUEUE (self));
- g_return_if_fail (self->in_draw == FALSE);
- g_return_if_fail (viewport != NULL);
+ g_assert (GSK_IS_GL_COMMAND_QUEUE (self));
+ g_assert (self->in_draw == FALSE);
+ g_assert (viewport != NULL);
batch = begin_next_batch (self);
batch->any.kind = GSK_GL_COMMAND_KIND_DRAW;
@@ -393,9 +393,9 @@ gsk_gl_command_queue_end_draw (GskGLCommandQueue *self)
GskGLCommandBatch *last_batch;
GskGLCommandBatch *batch;
- g_return_if_fail (GSK_IS_GL_COMMAND_QUEUE (self));
- g_return_if_fail (self->batches->len > 0);
- g_return_if_fail (self->in_draw == TRUE);
+ g_assert (GSK_IS_GL_COMMAND_QUEUE (self));
+ g_assert (self->batches->len > 0);
+ g_assert (self->in_draw == TRUE);
if (self->batches->len > 1)
last_batch = &g_array_index (self->batches, GskGLCommandBatch, self->batches->len - 2);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]