Fix point size/line width setting regression in OpenGL

This commit is contained in:
rdb 2015-07-31 13:28:16 +02:00
parent 0ee972a822
commit 51e243deb5
1 changed files with 6 additions and 2 deletions

View File

@ -6036,9 +6036,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;
}