aboutsummaryrefslogtreecommitdiff
path: root/render/dmabuf.c
diff options
context:
space:
mode:
authorQuantum <quantum2048@gmail.com>2021-02-01 14:48:43 -0500
committerSimon Ser <contact@emersion.fr>2021-02-01 21:19:17 +0100
commit975d14b799d138ae0f0220b62fc0469ac928dd2f (patch)
treea1dec3016ae9673d44f30c288c7415ffd5fbfbde /render/dmabuf.c
parent01d21cdd9fe5c3edc5d69986b4fc766eb9e6dc60 (diff)
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);
Diffstat (limited to 'render/dmabuf.c')
0 files changed, 0 insertions, 0 deletions