Manually transpose matricies in shader

Since GLES2 doesn't do this for us, it seems, on all platforms.
This commit is contained in:
Drew DeVault 2017-06-23 11:46:03 -04:00
parent b18209c904
commit f252c5a792
2 changed files with 31 additions and 3 deletions

View file

@ -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;
}