From f7669fcfc21db155d609c34a545f22ef39bfc6f5 Mon Sep 17 00:00:00 2001 From: Vladimir Byko-Ianko Date: Fri, 20 Nov 2015 18:26:49 +0300 Subject: [PATCH] Crash fix while drawing bookmarks. --- render/route_renderer.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/render/route_renderer.cpp b/render/route_renderer.cpp index af4fe7ee15..9be356f416 100644 --- a/render/route_renderer.cpp +++ b/render/route_renderer.cpp @@ -480,17 +480,12 @@ void RouteRenderer::Render(graphics::Screen * dlScreen, ScreenBase const & scree RenderArrow(dlScreen, halfWidth, screen); } + dlScreen->applyStates(); if (m_startRoutePoint.IsVisible()) - { - dlScreen->applyStates(); dlScreen->drawDisplayList(m_startRoutePoint.m_displayList, screen.GtoPMatrix()); - } if (m_finishRoutePoint.IsVisible()) - { - dlScreen->applyStates(); dlScreen->drawDisplayList(m_finishRoutePoint.m_displayList, screen.GtoPMatrix()); - } } void RouteRenderer::RenderArrow(graphics::Screen * dlScreen, float halfWidth, ScreenBase const & screen)