mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-15 08:56:26 -05:00
render/gles2: don't set inverted_y when EGL_WAYLAND_Y_INVERTED_WL is unsupported
This commit is contained in:
parent
de0e40d621
commit
0e253e0615
1 changed files with 4 additions and 2 deletions
|
|
@ -163,8 +163,10 @@ static bool gles2_texture_upload_drm(struct wlr_texture *_tex,
|
||||||
(EGLint*)&tex->wlr_texture.height);
|
(EGLint*)&tex->wlr_texture.height);
|
||||||
|
|
||||||
EGLint inverted_y;
|
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,
|
||||||
tex->wlr_texture.inverted_y = !!inverted_y;
|
&inverted_y)) {
|
||||||
|
tex->wlr_texture.inverted_y = !!inverted_y;
|
||||||
|
}
|
||||||
|
|
||||||
GLenum target;
|
GLenum target;
|
||||||
const struct pixel_format *pf;
|
const struct pixel_format *pf;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue