Potential fix for #27257: menus disappear particle edit mode wireframe draw.

Depth test got re-enabled without check if it was necessary.
This commit is contained in:
Brecht Van Lommel
2011-05-02 12:50:26 +00:00
parent 354ca130f6
commit 6baa456dfd

View File

@@ -4217,7 +4217,7 @@ static void draw_ptcache_edit(Scene *scene, View3D *v3d, PTCacheEdit *edit)
glDisableClientState(GL_NORMAL_ARRAY);
glDisableClientState(GL_VERTEX_ARRAY);
glShadeModel(GL_FLAT);
glEnable(GL_DEPTH_TEST);
if(v3d->zbuf) glEnable(GL_DEPTH_TEST);
glLineWidth(1.0f);
glPointSize(1.0);
}