diff options
author | Guido Günther <agx@sigxcpu.org> | 2018-03-07 15:41:12 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2018-03-11 19:02:05 +0100 |
commit | 2d0db169422b74e5ef7c07965c376273c7bb2961 (patch) | |
tree | 7d54fbec55991134320b8dd552c84d8c8e54cbe9 /render/gles2/renderer.c | |
parent | 6c7e1c867caf5c9a7c1046273f22b01cda30f034 (diff) |
render: Flip textures in case of inverted_y
Diffstat (limited to 'render/gles2/renderer.c')
-rw-r--r-- | render/gles2/renderer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/render/gles2/renderer.c b/render/gles2/renderer.c index ad739cf8..ba03f599 100644 --- a/render/gles2/renderer.c +++ b/render/gles2/renderer.c @@ -179,7 +179,8 @@ static bool wlr_gles2_render_texture(struct wlr_renderer *wlr_renderer, wlr_texture_bind(texture); GL_CALL(glUniformMatrix4fv(0, 1, GL_FALSE, *matrix)); - GL_CALL(glUniform1f(2, alpha)); + GL_CALL(glUniform1i(1, texture->inverted_y)); + GL_CALL(glUniform1f(3, alpha)); draw_quad(); return true; } |