mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-23 11:29:49 +01:00
opengl: use GL_CLAMP_TO_EDGE instead of GL_CLAMP
avoid error spam on select hw
This commit is contained in:
parent
52c0919621
commit
3ca699debf
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue