From 1e2a899ba2d9dc6d9e6fefaf569fa31dbd41339a Mon Sep 17 00:00:00 2001 From: whitequark Date: Fri, 12 Feb 2016 05:26:08 +0000 Subject: [PATCH] Avoid spurious double to float conversion. MSVC (mostly rightly) complains about this, even if our particular case is irrelevant. --- src/glhelper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/glhelper.cpp b/src/glhelper.cpp index 85ac7e2d..54335365 100644 --- a/src/glhelper.cpp +++ b/src/glhelper.cpp @@ -67,8 +67,8 @@ void ssglLineWidth(GLfloat width) { } } - if(workaroundEnabled && width < 1.6) - width = 1.6; + if(workaroundEnabled && width < 1.6f) + width = 1.6f; glLineWidth(width); }