Forráskód Böngészése

Fix regression in 1.10 with point/line thickness

rdb 10 éve
szülő
commit
53696052b9
1 módosított fájl, 6 hozzáadás és 2 törlés
  1. 6 2
      panda/src/glstuff/glGraphicsStateGuardian_src.cxx

+ 6 - 2
panda/src/glstuff/glGraphicsStateGuardian_src.cxx

@@ -5990,9 +5990,13 @@ do_issue_render_mode() {
 
   // The thickness affects both the line width and the point size.
   if (thickness != _point_size) {
-    glLineWidth(_point_size);
+    if (GLCAT.is_spam()) {
+      GLCAT.spam() << "setting thickness to " << thickness << "\n";
+    }
+
+    glLineWidth(thickness);
 #ifndef OPENGLES_2
-    glPointSize(_point_size);
+    glPointSize(thickness);
 #endif
     _point_size = thickness;
   }