aboutsummaryrefslogtreecommitdiff
path: root/include/render/gles2.h
diff options
context:
space:
mode:
authorSimon Zeni <simon@bl4ckb0ne.ca>2020-06-08 12:24:19 -0400
committerSimon Ser <contact@emersion.fr>2020-06-24 20:01:19 +0200
commit4a4da256ddce84c6ddf4574645f8f88c66940c8c (patch)
treef405ce3cdd426cbcfaaf6c3c9a674a3b59cfe008 /include/render/gles2.h
parentd5530b26d7dfc142ee1f37020436d11696864fd3 (diff)
render/gles2: use glGetAttribLocation instead of hardcoded indices
Diffstat (limited to 'include/render/gles2.h')
-rw-r--r--include/render/gles2.h5
1 files changed, 5 insertions, 0 deletions
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;