From 3adc7d977edec50c116f20a82dd66608017a99f5 Mon Sep 17 00:00:00 2001 From: rdb Date: Tue, 4 Dec 2018 16:16:05 +0100 Subject: [PATCH] glgsg: fix compilation in double-precision mode --- panda/src/glstuff/glGraphicsStateGuardian_src.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx index 62d74ce5bc..7974a9345c 100644 --- a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx +++ b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx @@ -7374,7 +7374,7 @@ do_issue_render_mode() { GLCAT.spam() << "setting thickness to " << thickness << "\n"; } - glLineWidth(std::min(thickness, _max_line_width)); + glLineWidth(std::min((GLfloat)thickness, _max_line_width)); #ifndef OPENGLES_2 glPointSize(thickness); #endif