aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/render/OpenGL.cpp
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-10-05 00:52:53 +0100
committerVaxry <[email protected]>2024-10-05 01:01:21 +0100
commit595eb89f6e16df0e19916e3c02bf5ceac5a61c57 (patch)
treec3c08f6405838491ae195a5f29e9f6c260a72b80 /src/render/OpenGL.cpp
parenta815b14bf1b69b92f82bd09f6845fbdbb2fbe516 (diff)
downloadHyprland-595eb89f6e16df0e19916e3c02bf5ceac5a61c57.tar.gz
Hyprland-595eb89f6e16df0e19916e3c02bf5ceac5a61c57.zip
renderer: Fix resize artifacts (stretching, bumps) (#7499)
Diffstat (limited to 'src/render/OpenGL.cpp')
-rw-r--r--src/render/OpenGL.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp
index 4f22d6aa..a16c2d62 100644
--- a/src/render/OpenGL.cpp
+++ b/src/render/OpenGL.cpp
@@ -1423,6 +1423,9 @@ void CHyprOpenGLImpl::renderTextureInternalWithDamage(SP<CTexture> tex, CBox* pB
glActiveTexture(GL_TEXTURE0);
glBindTexture(tex->m_iTarget, tex->m_iTexID);
+ glTexParameteri(tex->m_iTarget, GL_TEXTURE_WRAP_S, 0x2900 /* GL_CLAMP */);
+ glTexParameteri(tex->m_iTarget, GL_TEXTURE_WRAP_T, 0x2900);
+
if (m_RenderData.useNearestNeighbor) {
glTexParameteri(tex->m_iTarget, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
glTexParameteri(tex->m_iTarget, GL_TEXTURE_MIN_FILTER, GL_NEAREST);