Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Erwin <significant.bit@gmail.com>2016-01-23 08:58:32 +0300
committerMike Erwin <significant.bit@gmail.com>2016-01-23 08:58:51 +0300
commite25ba162c0b62b19cf367f0f29e29d0c0960978d (patch)
tree6f274502a6fb22b1679decca4b944e09fab29137 /source/blender/editors/space_node/node_draw.c
parent90293a8da375b785fa58d3f56de1b286072107c1 (diff)
OpenGL: call glLineWidth less often
Each LINES draw call is now responsible for its own line width. No need to set it back to its 1.0 default after every draw. This eliminates half our calls to glLineWidth , similar to last week’s work on glPointSize.
Diffstat (limited to 'source/blender/editors/space_node/node_draw.c')
-rw-r--r--source/blender/editors/space_node/node_draw.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/source/blender/editors/space_node/node_draw.c b/source/blender/editors/space_node/node_draw.c
index b4ab516ed5c..9c02acb3683 100644
--- a/source/blender/editors/space_node/node_draw.c
+++ b/source/blender/editors/space_node/node_draw.c
@@ -651,7 +651,6 @@ static void node_circle_draw(float x, float y, float size, const float col[4], i
glEnd();
glDisable(GL_LINE_SMOOTH);
glDisable(GL_BLEND);
- glLineWidth(1.0f);
}
void node_socket_circle_draw(const bContext *C, bNodeTree *ntree, bNode *node, bNodeSocket *sock, float size, int highlight)