[gtk/wip/chergert/glproto: 49/493] apply framebuffer from clear command
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/glproto: 49/493] apply framebuffer from clear command
- Date: Fri, 19 Feb 2021 02:25:03 +0000 (UTC)
commit 0a6b11536b3d71620a2aac3a1811018fa3185dc4
Author: Christian Hergert <chergert redhat com>
Date: Wed Dec 23 18:16:59 2020 -0800
apply framebuffer from clear command
gsk/next/gskglcommandqueue.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/gsk/next/gskglcommandqueue.c b/gsk/next/gskglcommandqueue.c
index 5b9bec3664..8d56ffe9ef 100644
--- a/gsk/next/gskglcommandqueue.c
+++ b/gsk/next/gskglcommandqueue.c
@@ -902,6 +902,12 @@ gsk_gl_command_queue_execute (GskGLCommandQueue *self)
switch (batch->kind)
{
case GSK_GL_COMMAND_KIND_CLEAR:
+ if (framebuffer != batch->clear.framebuffer)
+ {
+ framebuffer = batch->clear.framebuffer;
+ glBindFramebuffer (GL_FRAMEBUFFER, framebuffer);
+ }
+
glClear (batch->clear.bits);
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]