wlroots/render/gles2
Quantum 975d14b799 render/wlr_texture: clamp texture coordinates to edge by default
Clamping texture coordinates prevents OpenGL from blending the left and
right edge (or top and bottom edge) when scaling textures with GL_LINEAR
filtering. This prevents visual artifacts like swaywm/sway#5809.

Per discussion on IRC, this behaviour is made default. Compositors that want
the wrapping behaviour (e.g. for tiled patterns) can override this by doing:

    struct wlr_gles2_texture_attribs attribs;
    wlr_gles2_texture_get_attribs(texture, &attribs);

    glBindTexture(attribs.target, attribs.tex);
    glTexParameteri(attribs.target, GL_TEXTURE_WRAP_S, GL_REPEAT);
    glTexParameteri(attribs.target, GL_TEXTURE_WRAP_T, GL_REPEAT);
    glBindTexture(attribs.target, 0);
2021-02-01 21:19:17 +01:00
..
meson.build render: extract gles2 build files to subdir 2021-01-15 22:13:04 +01:00
pixel_format.c render/gles2: remove duplicated format list 2020-03-09 15:26:28 +01:00
renderer.c render/egl: remove *config_attribs and wlr_egl->config 2021-01-29 10:03:24 +01:00
shaders.c render/gles2: use .x/.y instead of .s/.t 2020-06-17 09:10:54 -06:00
texture.c render/wlr_texture: clamp texture coordinates to edge by default 2021-02-01 21:19:17 +01:00