[gtk/wip/chergert/glproto: 523/526] we only need 4 textures




commit 6f6ebb448f3681f491a2c4d1cfeafc1cffc54de6
Author: Christian Hergert <chergert redhat com>
Date:   Mon Feb 15 17:17:05 2021 -0800

    we only need 4 textures
    
    because all our shaders use up to 4 (custom being the user of 4)

 gsk/next/gskglattachmentstateprivate.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gsk/next/gskglattachmentstateprivate.h b/gsk/next/gskglattachmentstateprivate.h
index 3144371ce9..cc71648d17 100644
--- a/gsk/next/gskglattachmentstateprivate.h
+++ b/gsk/next/gskglattachmentstateprivate.h
@@ -51,7 +51,8 @@ G_STATIC_ASSERT (sizeof (GskGLBindFramebuffer) == 4);
 struct _GskGLAttachmentState
 {
   GskGLBindFramebuffer fbo;
-  GskGLBindTexture textures[8];
+  /* Increase if shaders add more textures */
+  GskGLBindTexture textures[4];
   guint n_changed;
 };
 


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