[gtk/wip/chergert/glproto: 195/493] allow -1 for a failure program
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/glproto: 195/493] allow -1 for a failure program
- Date: Fri, 19 Feb 2021 02:25:09 +0000 (UTC)
commit 9e5d3649357d653c7253172e2e8cb258a12b1e6e
Author: Christian Hergert <chergert redhat com>
Date: Wed Jan 13 23:15:34 2021 -0800
allow -1 for a failure program
gsk/next/gskglprogram.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gsk/next/gskglprogram.c b/gsk/next/gskglprogram.c
index f61a870a74..87b22241cf 100644
--- a/gsk/next/gskglprogram.c
+++ b/gsk/next/gskglprogram.c
@@ -34,7 +34,7 @@ gsk_gl_program_new (GskGLCommandQueue *command_queue,
{
GskGLProgram *self;
- g_return_val_if_fail (program_id >= 0, NULL);
+ g_return_val_if_fail (program_id >= -1, NULL);
self = g_object_new (GSK_TYPE_GL_PROGRAM, NULL);
self->id = program_id;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]