diff options
author | Vaxry <[email protected]> | 2024-10-05 00:52:53 +0100 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-10-05 01:01:21 +0100 |
commit | 595eb89f6e16df0e19916e3c02bf5ceac5a61c57 (patch) | |
tree | c3c08f6405838491ae195a5f29e9f6c260a72b80 /src/render/OpenGL.cpp | |
parent | a815b14bf1b69b92f82bd09f6845fbdbb2fbe516 (diff) | |
download | Hyprland-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.cpp | 3 |
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); |