From 53696052b94244b60756b8afabd1a31e7744a41f Mon Sep 17 00:00:00 2001 From: rdb Date: Fri, 31 Jul 2015 13:18:01 +0200 Subject: [PATCH] Fix regression in 1.10 with point/line thickness --- panda/src/glstuff/glGraphicsStateGuardian_src.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx index a8d9d55c06..521bf044b7 100644 --- a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx +++ b/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; }