[gtk/wip/chergert/glproto: 63/493] check max texture size when starting a frame
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/glproto: 63/493] check max texture size when starting a frame
- Date: Fri, 19 Feb 2021 02:25:03 +0000 (UTC)
commit 132fa77bc389ee6f04f567ccfb2ba32b8415e9e6
Author: Christian Hergert <chergert redhat com>
Date: Sat Dec 26 15:21:26 2020 -0800
check max texture size when starting a frame
gsk/next/gskglcommandqueue.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/gsk/next/gskglcommandqueue.c b/gsk/next/gskglcommandqueue.c
index 9179d4a3a2..dc365512bb 100644
--- a/gsk/next/gskglcommandqueue.c
+++ b/gsk/next/gskglcommandqueue.c
@@ -1017,6 +1017,9 @@ gsk_gl_command_queue_begin_frame (GskGLCommandQueue *self)
self->tail_batch_index = -1;
+ if (self->max_texture_size == -1)
+ glGetIntegerv (GL_MAX_TEXTURE_SIZE, &self->max_texture_size);
+
glBindFramebuffer (GL_FRAMEBUFFER, 0);
for (guint i = 0; i < 8; i++)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]