From 8a4417ec46686c89ed01586ad904948a96c04ab9 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Mon, 9 Sep 2013 14:31:13 +0200 Subject: [PATCH] Fixed color for drawing polygons on overlay. --- common/gal/opengl/opengl_gal.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/common/gal/opengl/opengl_gal.cpp b/common/gal/opengl/opengl_gal.cpp index 5b584ff10e..4d40e28978 100644 --- a/common/gal/opengl/opengl_gal.cpp +++ b/common/gal/opengl/opengl_gal.cpp @@ -471,6 +471,7 @@ void OPENGL_GAL::DrawPolygon( const std::deque& aPointList ) // Any non convex polygon needs to be tesselated // for this purpose the GLU standard functions are used currentManager->Shader( SHADER_NONE ); + currentManager->Color( fillColor.r, fillColor.g, fillColor.b, fillColor.a ); TessParams params = { currentManager, tessIntersects }; gluTessBeginPolygon( tesselator, ¶ms );