mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
Manually transpose matricies in shader
Since GLES2 doesn't do this for us, it seems, on all platforms.
This commit is contained in:
parent
b18209c904
commit
f252c5a792
2 changed files with 31 additions and 3 deletions
|
|
@ -142,7 +142,7 @@ static bool wlr_gles2_render_surface(struct wlr_renderer_state *state,
|
|||
}
|
||||
gles2_flush_errors();
|
||||
wlr_surface_bind(surface);
|
||||
GL_CALL(glUniformMatrix4fv(0, 1, GL_TRUE, *matrix));
|
||||
GL_CALL(glUniformMatrix4fv(0, 1, GL_FALSE, *matrix));
|
||||
draw_quad();
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue