We need this number in a couple of places,
so pull it out as a constant.
G_STATIC_ASSERT (sizeof (GskGLBindFramebuffer) == 4);
+/* Increase if shaders add more textures */
+#define GSK_GL_MAX_TEXTURES_PER_PROGRAM 4
+
struct _GskGLAttachmentState
{
GskGLBindFramebuffer fbo;
- /* Increase if shaders add more textures */
- GskGLBindTexture textures[4];
+ GskGLBindTexture textures[GSK_GL_MAX_TEXTURES_PER_PROGRAM];
guint n_changed;
};
G_GNUC_UNUSED unsigned int n_programs = 0;
guint vao_id;
guint vbo_id;
- int textures[4];
- int samplers[4];
+ int textures[GSK_GL_MAX_TEXTURES_PER_PROGRAM];
+ int samplers[GSK_GL_MAX_TEXTURES_PER_PROGRAM];
int framebuffer = -1;
int next_batch_index;
int active = -1;