[Bf-blender-cvs] [83e8b3a] alembic: Clean up vertex/normal client state after drawing strands.
Lukas Tönne
noreply at git.blender.org
Wed Apr 1 16:13:19 CEST 2015
Commit: 83e8b3a51ebb93ea4b70872d476d25de089fd203
Author: Lukas Tönne
Date: Wed Apr 1 16:11:57 2015 +0200
Branches: alembic
https://developer.blender.org/rB83e8b3a51ebb93ea4b70872d476d25de089fd203
Clean up vertex/normal client state after drawing strands.
This should hopefully prevent some random crashes.
===================================================================
M source/blender/editors/space_view3d/drawstrands.c
===================================================================
diff --git a/source/blender/editors/space_view3d/drawstrands.c b/source/blender/editors/space_view3d/drawstrands.c
index 5627d0d..c7c6ba5 100644
--- a/source/blender/editors/space_view3d/drawstrands.c
+++ b/source/blender/editors/space_view3d/drawstrands.c
@@ -94,6 +94,9 @@ static void draw_strand_lines(Strands *strands, short dflag)
glLineWidth(1.0f);
+ glDisableClientState(GL_VERTEX_ARRAY);
+ glDisableClientState(GL_NORMAL_ARRAY);
+
glPolygonMode(GL_FRONT, polygonmode[0]);
glPolygonMode(GL_BACK, polygonmode[1]);
}
More information about the Bf-blender-cvs
mailing list