diff options
author | Vaxry <[email protected]> | 2024-10-05 14:57:18 +0100 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-10-05 14:57:18 +0100 |
commit | 3ca699debffbb97085888835a33f20d0c542128d (patch) | |
tree | e6650a835b3ae8a6fb2cf69ac799dc2d796ea44b | |
parent | 52c09196219313aec2ec1d3d543669bff834d746 (diff) | |
download | Hyprland-3ca699debffbb97085888835a33f20d0c542128d.tar.gz Hyprland-3ca699debffbb97085888835a33f20d0c542128d.zip |
opengl: use GL_CLAMP_TO_EDGE instead of GL_CLAMP
avoid error spam on select hw
-rw-r--r-- | src/render/OpenGL.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp index a16c2d62..833e2ccb 100644 --- a/src/render/OpenGL.cpp +++ b/src/render/OpenGL.cpp @@ -1423,8 +1423,8 @@ 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); + glTexParameteri(tex->m_iTarget, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); + glTexParameteri(tex->m_iTarget, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); if (m_RenderData.useNearestNeighbor) { glTexParameteri(tex->m_iTarget, GL_TEXTURE_MAG_FILTER, GL_NEAREST); |