From 3d17e68c4ec2e5a9310ee98279180a646e06f3d4 Mon Sep 17 00:00:00 2001 From: Alayan-stk-2 Date: Wed, 2 May 2018 19:13:09 +0200 Subject: [PATCH] Get a larger minimap texture to significantly reduce aliasing --- src/tracks/track.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/tracks/track.cpp b/src/tracks/track.cpp index c33288a6f..3ece93d52 100644 --- a/src/tracks/track.cpp +++ b/src/tracks/track.cpp @@ -1118,10 +1118,9 @@ void Track::loadMinimap() //Create the minimap resizing it as necessary. m_mini_map_size = World::getWorld()->getRaceGUI()->getMiniMapSize(); - core::dimension2du size = m_mini_map_size - .getOptimalSize(!nonpower,!nonsquare); - m_render_target = Graph::get()->makeMiniMap(size, "minimap::" + m_ident, video::SColor(127, 255, 255, 255)); + //Use twice the size of the rendered minimap to reduce significantly aliasing + m_render_target = Graph::get()->makeMiniMap(m_mini_map_size*2, "minimap::" + m_ident, video::SColor(127, 255, 255, 255)); if (!m_render_target) return; core::dimension2du mini_map_texture_size = m_render_target->getTextureSize();