mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
Fix GLES2 renderer to use glGetUniformLocations locations
This is needed as uniform locations are driver implementation-specific.
This commit is contained in:
parent
6f895081e1
commit
de91c55ea9
2 changed files with 108 additions and 37 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue