[gtk/wip/chergert/macos-iosurface: 2/3] gsk/gl: use default_framebuffer in render job
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/macos-iosurface: 2/3] gsk/gl: use default_framebuffer in render job
- Date: Fri, 11 Feb 2022 05:53:57 +0000 (UTC)
commit f59083effd9e2f48a0ab11b8c2e9bc833c79f5d0
Author: Christian Hergert <christian hergert me>
Date: Thu Feb 10 21:51:15 2022 -0800
gsk/gl: use default_framebuffer in render job
Now that we have the ability to set a default framebuffer for a GdkGLContext,
the GskGLRenderer needs to respect that when creating the render job.
gsk/gl/gskglrenderer.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c
index 64ba0b6f69..d20c0819e9 100644
--- a/gsk/gl/gskglrenderer.c
+++ b/gsk/gl/gskglrenderer.c
@@ -199,6 +199,7 @@ gsk_gl_renderer_render (GskRenderer *renderer,
GskGLRenderJob *job;
GdkSurface *surface;
float scale_factor;
+ GLuint framebuffer_id;
g_assert (GSK_IS_GL_RENDERER (renderer));
g_assert (root != NULL);
@@ -221,7 +222,8 @@ gsk_gl_renderer_render (GskRenderer *renderer,
render_region = get_render_region (surface, self->context);
gsk_gl_driver_begin_frame (self->driver, self->command_queue);
- job = gsk_gl_render_job_new (self->driver, &viewport, scale_factor, render_region, 0);
+ framebuffer_id = self->context->default_framebuffer;
+ job = gsk_gl_render_job_new (self->driver, &viewport, scale_factor, render_region, framebuffer_id);
#ifdef G_ENABLE_DEBUG
if (GSK_RENDERER_DEBUG_CHECK (GSK_RENDERER (self), FALLBACK))
gsk_gl_render_job_set_debug_fallback (job, TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]