Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorr.kuznetsov <r.kuznetsov@corp.mail.ru>2016-01-29 14:06:10 +0300
committerSergey Yershov <yershov@corp.mail.ru>2016-03-23 16:20:41 +0300
commitf4de5841f7bbfa1773ecd824d366a8bea49515a9 (patch)
tree16ee18c3f36b549e15fbf25c3e2cdfb2b5628b00 /drape/debug_rect_renderer.cpp
parent2317f55b5a9460654f0916f6b85d7fa23837d3be (diff)
Improved displacement algorithm and overlays rendering
Diffstat (limited to 'drape/debug_rect_renderer.cpp')
-rw-r--r--drape/debug_rect_renderer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/drape/debug_rect_renderer.cpp b/drape/debug_rect_renderer.cpp
index 5f422600ad..2aa547bdb8 100644
--- a/drape/debug_rect_renderer.cpp
+++ b/drape/debug_rect_renderer.cpp
@@ -85,7 +85,7 @@ void DebugRectRenderer::SetEnabled(bool enabled)
m_isEnabled = enabled;
}
-void DebugRectRenderer::DrawRect(ScreenBase const & screen, m2::RectF const & rect) const
+void DebugRectRenderer::DrawRect(ScreenBase const & screen, m2::RectF const & rect, dp::Color const & color) const
{
if (!m_isEnabled)
return;
@@ -110,7 +110,7 @@ void DebugRectRenderer::DrawRect(ScreenBase const & screen, m2::RectF const & re
int8_t const location = m_program->GetUniformLocation("u_color");
if (location >= 0)
- GLFunctions::glUniformValuef(location, 1.0, 0.0, 0.0, 1.0);
+ GLFunctions::glUniformValuef(location, color.GetRedF(), color.GetGreenF(), color.GetBlueF(), color.GetAlfaF());
GLFunctions::glDrawArrays(gl_const::GLLineStrip, 0, vertices.size());