[gtk/wip/chergert/glproto] return previous fbo when binding



commit 64ed5569e17a57da6498f9877bed6623bcc3f52d
Author: Christian Hergert <chergert redhat com>
Date:   Fri Feb 12 14:09:16 2021 -0800

    return previous fbo when binding

 gsk/next/gskglcommandqueueprivate.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/gsk/next/gskglcommandqueueprivate.h b/gsk/next/gskglcommandqueueprivate.h
index 90c2f5acb5..92968321e0 100644
--- a/gsk/next/gskglcommandqueueprivate.h
+++ b/gsk/next/gskglcommandqueueprivate.h
@@ -345,11 +345,13 @@ gsk_gl_command_queue_retract_n_vertices (GskGLCommandQueue *self,
   gsk_gl_buffer_retract (&self->vertices, GSK_GL_N_VERTICES * count);
 }
 
-static inline void
+static inline guint
 gsk_gl_command_queue_bind_framebuffer (GskGLCommandQueue *self,
                                        guint              framebuffer)
 {
+  guint ret = self->attachments->fbo.id;
   gsk_gl_attachment_state_bind_framebuffer (self->attachments, framebuffer);
+  return ret;
 }
 
 G_END_DECLS


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