[gtk/wip/chergert/glproto: 226/493] add some assertions




commit f826aee61de2ca1a0c949eda9770299b6fb43ba9
Author: Christian Hergert <chergert redhat com>
Date:   Wed Jan 20 21:45:54 2021 -0800

    add some assertions

 gsk/next/gskglrenderjob.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/gsk/next/gskglrenderjob.c b/gsk/next/gskglrenderjob.c
index f4ad75fd8d..f0c84a7203 100644
--- a/gsk/next/gskglrenderjob.c
+++ b/gsk/next/gskglrenderjob.c
@@ -3042,6 +3042,9 @@ gsk_gl_render_job_visit_texture_node (GskGLRenderJob *job,
 
       gsk_gl_render_job_upload_texture (job, texture, &offscreen);
 
+      g_assert (offscreen.texture_id);
+      g_assert (offscreen.was_offscreen == FALSE);
+
       gsk_gl_program_begin_draw (job->driver->blit,
                                  &job->viewport,
                                  &job->projection,


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