[gtk/wip/chergert/glproto: 901/920] remove state save
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/glproto: 901/920] remove state save
- Date: Mon, 8 Feb 2021 19:15:48 +0000 (UTC)
commit 4cea454be35b4e67d043fca92e78973d6d36b013
Author: Christian Hergert <chergert redhat com>
Date: Wed Feb 3 23:13:39 2021 -0800
remove state save
we dont need this because we haven't started executing cmdq
gsk/next/gskglcommandqueue.c | 5 -----
1 file changed, 5 deletions(-)
---
diff --git a/gsk/next/gskglcommandqueue.c b/gsk/next/gskglcommandqueue.c
index 5ce3f9782d..0f8433bfa7 100644
--- a/gsk/next/gskglcommandqueue.c
+++ b/gsk/next/gskglcommandqueue.c
@@ -1075,8 +1075,6 @@ gsk_gl_command_queue_create_render_target (GskGLCommandQueue *self,
g_assert (out_fbo_id != NULL);
g_assert (out_texture_id != NULL);
- gsk_gl_command_queue_save (self);
-
texture_id = gsk_gl_command_queue_create_texture (self,
width, height,
min_filter, mag_filter);
@@ -1085,7 +1083,6 @@ gsk_gl_command_queue_create_render_target (GskGLCommandQueue *self,
{
*out_fbo_id = 0;
*out_texture_id = 0;
- gsk_gl_command_queue_restore (self);
return FALSE;
}
@@ -1095,8 +1092,6 @@ gsk_gl_command_queue_create_render_target (GskGLCommandQueue *self,
glFramebufferTexture2D (GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture_id, 0);
g_assert_cmphex (glCheckFramebufferStatus (GL_FRAMEBUFFER), ==, GL_FRAMEBUFFER_COMPLETE);
- gsk_gl_command_queue_restore (self);
-
*out_fbo_id = fbo_id;
*out_texture_id = texture_id;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]