[gtk/wip/chergert/glproto: 71/94] only change framebuffer if non-zero
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/glproto: 71/94] only change framebuffer if non-zero
- Date: Fri, 1 Jan 2021 21:30:50 +0000 (UTC)
commit c7181869c5067696f64648209e66adb97864f176
Author: Christian Hergert <chergert redhat com>
Date: Mon Dec 28 23:19:14 2020 -0800
only change framebuffer if non-zero
gsk/next/gskglrenderjob.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/gsk/next/gskglrenderjob.c b/gsk/next/gskglrenderjob.c
index 05fb3e5478..bac0df3cc9 100644
--- a/gsk/next/gskglrenderjob.c
+++ b/gsk/next/gskglrenderjob.c
@@ -594,7 +594,9 @@ gsk_gl_render_job_render (GskGLRenderJob *job,
gsk_next_driver_begin_frame (job->driver);
- gsk_gl_command_queue_bind_framebuffer (job->command_queue, job->framebuffer);
+ if (job->framebuffer != 0)
+ gsk_gl_command_queue_bind_framebuffer (job->command_queue, job->framebuffer);
+
gsk_gl_command_queue_clear (job->command_queue, 0, &job->viewport);
gdk_gl_context_push_debug_group (context, "Building command queue");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]