Skip to content
Discussion options

You must be logged in to vote

This works @vaxerski, should I make it into a PR? I'm asking because you may prefer making it into an option and not force the no-anti-aliasing.

diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp
index 3cb810e1..d0a3ba21 100644
--- a/src/render/OpenGL.cpp
+++ b/src/render/OpenGL.cpp
@@ -1760,6 +1760,17 @@ void CHyprOpenGLImpl::renderTexturePrimitive(SP<CTexture> tex, const CBox& box)
     glActiveTexture(GL_TEXTURE0);
     tex->bind();
 
+    // ensure the final blit uses the desired sampling filter
+    // when cursor zoom is active we want nearest-neighbor (no anti-aliasing)
+    if (m_renderData.useNearestNeighbor) {
+        tex->setTexParameter(GL_TEXTURE_MAG_FILTER, GL_NEARE…

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
2 replies
@LamprosPitsillos
Comment options

@vaxerski
Comment options

Comment options

You must be logged in to vote
6 replies
@BeyondMagic
Comment options

@vaxerski
Comment options

@BeyondMagic
Comment options

@BeyondMagic
Comment options

Answer selected by LamprosPitsillos
@vaxerski
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants