From 8488430faaf76483ad8ec9bb2638d75a39eff898 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 27 Oct 2022 16:45:32 +0200 Subject: [PATCH] render/gles2: introduce struct wlr_gles2_quad_shader We will use this struct from multiple places soon. --- include/render/gles2.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/include/render/gles2.h b/include/render/gles2.h index 8c281988e..438bee352 100644 --- a/include/render/gles2.h +++ b/include/render/gles2.h @@ -22,6 +22,13 @@ struct wlr_gles2_pixel_format { bool has_alpha; }; +struct wlr_gles2_quad_shader { + GLuint program; + GLint proj; + GLint color; + GLint pos_attrib; +}; + struct wlr_gles2_tex_shader { GLuint program; GLint proj; @@ -60,12 +67,7 @@ struct wlr_gles2_renderer { } procs; struct { - struct { - GLuint program; - GLint proj; - GLint color; - GLint pos_attrib; - } quad; + struct wlr_gles2_quad_shader quad; struct wlr_gles2_tex_shader tex_rgba; struct wlr_gles2_tex_shader tex_rgbx; struct wlr_gles2_tex_shader tex_ext;