diff options
author | NeKit <nekit1000@gmail.com> | 2018-06-03 01:20:09 +0300 |
---|---|---|
committer | NeKit <nekit1000@gmail.com> | 2018-06-07 18:06:31 +0300 |
commit | de91c55ea9da1b4c22bc377a7013efdcc71fff06 (patch) | |
tree | d8da509282f47dd982b0c81c5e857ea1e5e85858 /include | |
parent | 6f895081e1d05e651543187e11766259e2b4f798 (diff) |
Fix GLES2 renderer to use glGetUniformLocations locations
This is needed as uniform locations are driver implementation-specific.
Diffstat (limited to 'include')
-rw-r--r-- | include/render/gles2.h | 36 |
1 files changed, 31 insertions, 5 deletions
diff --git a/include/render/gles2.h b/include/render/gles2.h index 99beff29..c47751d1 100644 --- a/include/render/gles2.h +++ b/include/render/gles2.h @@ -32,11 +32,37 @@ struct wlr_gles2_renderer { const char *exts_str; struct { - GLuint quad; - GLuint ellipse; - GLuint tex_rgba; - GLuint tex_rgbx; - GLuint tex_ext; + struct { + GLuint program; + GLint proj; + GLint color; + } quad; + struct { + GLuint program; + GLint proj; + GLint color; + } ellipse; + struct { + GLuint program; + GLint proj; + GLint invert_y; + GLint tex; + GLint alpha; + } tex_rgba; + struct { + GLuint program; + GLint proj; + GLint invert_y; + GLint tex; + GLint alpha; + } tex_rgbx; + struct { + GLuint program; + GLint proj; + GLint invert_y; + GLint tex; + GLint alpha; + } tex_ext; } shaders; uint32_t viewport_width, viewport_height; |