Fixed color for drawing polygons on overlay.
This commit is contained in:
parent
cba1e0bf91
commit
8a4417ec46
|
@ -471,6 +471,7 @@ void OPENGL_GAL::DrawPolygon( const std::deque<VECTOR2D>& aPointList )
|
||||||
// Any non convex polygon needs to be tesselated
|
// Any non convex polygon needs to be tesselated
|
||||||
// for this purpose the GLU standard functions are used
|
// for this purpose the GLU standard functions are used
|
||||||
currentManager->Shader( SHADER_NONE );
|
currentManager->Shader( SHADER_NONE );
|
||||||
|
currentManager->Color( fillColor.r, fillColor.g, fillColor.b, fillColor.a );
|
||||||
|
|
||||||
TessParams params = { currentManager, tessIntersects };
|
TessParams params = { currentManager, tessIntersects };
|
||||||
gluTessBeginPolygon( tesselator, ¶ms );
|
gluTessBeginPolygon( tesselator, ¶ms );
|
||||||
|
|
Loading…
Reference in New Issue