From 4a4da256ddce84c6ddf4574645f8f88c66940c8c Mon Sep 17 00:00:00 2001 From: Simon Zeni Date: Mon, 8 Jun 2020 12:24:19 -0400 Subject: render/gles2: use glGetAttribLocation instead of hardcoded indices --- include/render/gles2.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/render') diff --git a/include/render/gles2.h b/include/render/gles2.h index 24c02e4d..6d25bea0 100644 --- a/include/render/gles2.h +++ b/include/render/gles2.h @@ -38,6 +38,8 @@ struct wlr_gles2_tex_shader { GLint invert_y; GLint tex; GLint alpha; + GLint pos_attrib; + GLint tex_attrib; }; struct wlr_gles2_renderer { @@ -58,11 +60,14 @@ struct wlr_gles2_renderer { GLuint program; GLint proj; GLint color; + GLint pos_attrib; } quad; struct { GLuint program; GLint proj; GLint color; + GLint pos_attrib; + GLint tex_attrib; } ellipse; struct wlr_gles2_tex_shader tex_rgba; struct wlr_gles2_tex_shader tex_rgbx; -- cgit v1.2.3