fix drawing of colormap (last piece was missing)

This commit is contained in:
Matthias Hochsteger 2022-10-06 15:11:47 +02:00
parent 0170789bbf
commit 27679c231a

View File

@ -582,8 +582,9 @@ namespace netgen
glDisable (GL_DEPTH_TEST);
glBegin (GL_QUAD_STRIP);
for (double x = minx; x <= maxx; x += (maxx - minx) / 50)
for (auto i : Range(50))
{
double x = minx + i*1.0/49*(maxx-minx);
SetOpenGlColor (x, minx, maxx);
glVertex3d (x, miny, -5);
glVertex3d (x, maxy, -5);