glViewer: line widths larger than 1.0 are deprecated in core GL (generates a GL error)

This commit is contained in:
Aras Pranckevicius 2013-02-04 09:10:27 +02:00
parent a4a8cd122d
commit 9c9f00ef18

View File

@ -807,9 +807,7 @@ drawCageEdges() {
glVertexAttribPointer(g_defaultProgram.attrColor,
3, GL_FLOAT, GL_FALSE, sizeof (GLfloat) * 6, (void*)12);
glLineWidth(2.0f);
glDrawArrays(GL_LINES, 0, (int)g_coarseEdges.size());
glLineWidth(1.0f);
glBindVertexArray(0);
glUseProgram(0);