mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2025-01-01 12:50:13 +00:00
glViewer: line widths larger than 1.0 are deprecated in core GL (generates a GL error)
This commit is contained in:
parent
a4a8cd122d
commit
9c9f00ef18
@ -807,9 +807,7 @@ drawCageEdges() {
|
|||||||
glVertexAttribPointer(g_defaultProgram.attrColor,
|
glVertexAttribPointer(g_defaultProgram.attrColor,
|
||||||
3, GL_FLOAT, GL_FALSE, sizeof (GLfloat) * 6, (void*)12);
|
3, GL_FLOAT, GL_FALSE, sizeof (GLfloat) * 6, (void*)12);
|
||||||
|
|
||||||
glLineWidth(2.0f);
|
|
||||||
glDrawArrays(GL_LINES, 0, (int)g_coarseEdges.size());
|
glDrawArrays(GL_LINES, 0, (int)g_coarseEdges.size());
|
||||||
glLineWidth(1.0f);
|
|
||||||
|
|
||||||
glBindVertexArray(0);
|
glBindVertexArray(0);
|
||||||
glUseProgram(0);
|
glUseProgram(0);
|
||||||
|
Loading…
Reference in New Issue
Block a user