renderer: Fix resize artifacts (stretching, bumps) (#7499)
This commit is contained in:
parent
a815b14bf1
commit
595eb89f6e
4 changed files with 46 additions and 34 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue