[gtk/wip/chergert/glproto: 125/526] 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: 125/526] check max texture size when starting a frame
- Date: Tue, 16 Feb 2021 01:14:27 +0000 (UTC)
commit 5ac665802699a05a31f6d8cbd90f818f94d99a96
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]