From 050ca413be3f5ea8b5a2ab8d370f3f0444e9e089 Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Fri, 25 Nov 2016 20:07:30 -0400 Subject: [PATCH] Fix a missing reciprocal.. --HG-- branch : minor --- src/modules/graphics/opengl/Graphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/graphics/opengl/Graphics.cpp b/src/modules/graphics/opengl/Graphics.cpp index e47aff39f..1408e3373 100644 --- a/src/modules/graphics/opengl/Graphics.cpp +++ b/src/modules/graphics/opengl/Graphics.cpp @@ -1688,7 +1688,7 @@ void Graphics::polyline(const float *coords, size_t count) throw RenderOutsidePassException(); const DisplayState &state = states.back(); - float pixelsize = std::max((float) pixelScaleStack.back(), 0.000001f); + float pixelsize = 1.0f / std::max((float) pixelScaleStack.back(), 0.000001f); if (state.lineJoin == LINE_JOIN_NONE) {