From 9c9f00ef18ec4dcb71703f3d08411c1eed02f43d Mon Sep 17 00:00:00 2001 From: Aras Pranckevicius Date: Mon, 4 Feb 2013 09:10:27 +0200 Subject: [PATCH] glViewer: line widths larger than 1.0 are deprecated in core GL (generates a GL error) --- examples/glViewer/viewer.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/examples/glViewer/viewer.cpp b/examples/glViewer/viewer.cpp index fd8e4dd3..762a45ff 100755 --- a/examples/glViewer/viewer.cpp +++ b/examples/glViewer/viewer.cpp @@ -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);