render: Flip textures in case of inverted_y

This commit is contained in:
Guido Günther 2018-03-07 15:41:12 +01:00
parent 6c7e1c867c
commit 2d0db16942
4 changed files with 10 additions and 2 deletions

View file

@ -164,6 +164,7 @@ static bool gles2_texture_upload_drm(struct wlr_texture *_tex,
EGLint inverted_y;
wlr_egl_query_buffer(tex->egl, buf, EGL_WAYLAND_Y_INVERTED_WL, &inverted_y);
tex->wlr_texture.inverted_y = !!inverted_y;
GLenum target;
const struct pixel_format *pf;