Commit 8eefde5c authored by Ken Martin's avatar Ken Martin
Browse files

Added valid images for cases where line width is over 1.0

OpenGL 3.2 does not support line width greater than 1 although
many drivers do support it. This adds valid images for cases
where line width is greater than 1.0

Also minor VisualStudio error check
parent 7b2d837e
af24804916f9f6054597dd44b07f975c
1e922aa0006fcc2ce09f80cca1bc79a8
......@@ -623,7 +623,7 @@ void vtkOpenGLContextDevice2D::DrawPoly(float *f, int n, unsigned char *colors,
}
this->BuildVBO(cbo, &(newVerts[0]), newVerts.size()/2,
&(newColors[0]), nc, NULL);
colors ? &(newColors[0]) : NULL, nc, NULL);
glDrawArrays(GL_TRIANGLES, 0, newVerts.size()/2);
}
else
......@@ -717,7 +717,7 @@ void vtkOpenGLContextDevice2D::DrawLines(float *f, int n, unsigned char *colors,
}
this->BuildVBO(cbo, &(newVerts[0]), newVerts.size()/2,
&(newColors[0]), nc, NULL);
colors ? &(newColors[0]) : NULL, nc, NULL);
glDrawArrays(GL_TRIANGLES, 0, newVerts.size()/2);
}
else
......
81c8d5be8e823133170e11b7951aa50c
eaa7d738a968bb9393252bbba26ea5c6
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment