[gtk/wip/chergert/glproto: 482/526] always bind fb 0




commit e6a4bc24565f094bfb56aed5c588e2cef33ac18a
Author: Christian Hergert <chergert redhat com>
Date:   Mon Feb 8 15:50:04 2021 -0800

    always bind fb 0

 gsk/next/gskglrenderjob.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/gsk/next/gskglrenderjob.c b/gsk/next/gskglrenderjob.c
index 6b90aa0a5d..650a7e4dc6 100644
--- a/gsk/next/gskglrenderjob.c
+++ b/gsk/next/gskglrenderjob.c
@@ -3595,8 +3595,7 @@ gsk_gl_render_job_render (GskGLRenderJob *job,
    */
   start_time = GDK_PROFILER_CURRENT_TIME;
   gdk_gl_context_push_debug_group (job->command_queue->context, "Building command queue");
-  if (job->framebuffer != 0)
-    gsk_gl_command_queue_bind_framebuffer (job->command_queue, job->framebuffer);
+  gsk_gl_command_queue_bind_framebuffer (job->command_queue, job->framebuffer);
   gsk_gl_command_queue_clear (job->command_queue, 0, &job->viewport);
   gsk_gl_render_job_visit_node (job, root);
   gdk_gl_context_pop_debug_group (job->command_queue->context);


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