From 232fafc9fa6df0c112bc01db9f2d23879dd4f8eb Mon Sep 17 00:00:00 2001 From: Dan Paulat Date: Mon, 21 Aug 2023 22:20:50 -0500 Subject: [PATCH] Interpolate icon coordinates for anti-aliasing - Still needs a little work, but this looks MUCH better --- scwx-qt/source/scwx/qt/gl/draw/placefile_icons.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scwx-qt/source/scwx/qt/gl/draw/placefile_icons.cpp b/scwx-qt/source/scwx/qt/gl/draw/placefile_icons.cpp index 4c1ec1a4..722d5fb9 100644 --- a/scwx-qt/source/scwx/qt/gl/draw/placefile_icons.cpp +++ b/scwx-qt/source/scwx/qt/gl/draw/placefile_icons.cpp @@ -230,9 +230,9 @@ void PlacefileIcons::Render( gl.glUniform1f(p->uMapDistanceLocation_, 0.0f); } - // Don't interpolate texture coordinates - gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); - gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); + // Interpolate texture coordinates + gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); + gl.glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); // Draw icons gl.glDrawArrays(GL_TRIANGLES, 0, p->numVertices_);