Merge pull request #723 from emersion/fix-xwayland-inverted-y

Fix y-inverted rendering for xwayland surfaces
This commit is contained in:
Drew DeVault 2018-03-15 10:59:28 -04:00 committed by GitHub
commit 7d3c4c2450
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -163,8 +163,10 @@ static bool gles2_texture_upload_drm(struct wlr_texture *_tex,
(EGLint*)&tex->wlr_texture.height);
EGLint inverted_y;
wlr_egl_query_buffer(tex->egl, buf, EGL_WAYLAND_Y_INVERTED_WL, &inverted_y);
if (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;