wlroots-hyprland/render
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
..
gles2 render/wlr_texture: clamp texture coordinates to edge by default 2021-02-01 21:19:17 +01:00
allocator.c render/allocator: ignore NULL in wlr_allocator_destroy 2020-12-17 20:34:19 +01:00
dmabuf.c render/dmabuf: add wlr_dmabuf_attributes_copy 2019-06-07 09:06:11 -04:00
drm_format_set.c render/drm_format_set: add special case for LINEAR-only formats 2020-12-30 11:17:43 +01:00
egl.c render/egl: log whether DMA-BUF modifiers are supported 2021-02-01 16:16:37 +01:00
gbm_allocator.c render/gbm_allocator: avoid drmPrimeHandleToFD 2021-01-23 16:41:54 +01:00
meson.build render: extract gles2 build files to subdir 2021-01-15 22:13:04 +01:00
swapchain.c render/swapchain: add support for buffer age 2020-11-15 22:48:42 +01:00
wlr_renderer.c render/egl: remove *config_attribs and wlr_egl->config 2021-01-29 10:03:24 +01:00
wlr_texture.c render/texture: make write_pixels optional 2020-04-28 21:45:14 +02:00