Browse Source

glgsg: fix compilation in double-precision mode

rdb 7 years ago
parent
commit
3adc7d977e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/glstuff/glGraphicsStateGuardian_src.cxx

+ 1 - 1
panda/src/glstuff/glGraphicsStateGuardian_src.cxx

@@ -7374,7 +7374,7 @@ do_issue_render_mode() {
       GLCAT.spam() << "setting thickness to " << thickness << "\n";
       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
 #ifndef OPENGLES_2
     glPointSize(thickness);
     glPointSize(thickness);
 #endif
 #endif