forked from bartvdbraak/blender
particle draw was doing glEnable(GL_DEPTH_TEST) which messed up the wire view, if this is needed for some particle drawing it needs to test the 3dview state.
This commit is contained in:
parent
bda73e2f35
commit
4213dac345
@ -3534,7 +3534,9 @@ static void draw_new_particle_system(Base *base, ParticleSystem *psys)
|
|||||||
glDisable(GL_LIGHTING);
|
glDisable(GL_LIGHTING);
|
||||||
glDisableClientState(GL_COLOR_ARRAY);
|
glDisableClientState(GL_COLOR_ARRAY);
|
||||||
glEnableClientState(GL_NORMAL_ARRAY);
|
glEnableClientState(GL_NORMAL_ARRAY);
|
||||||
|
#if 0 /* If this is needed, it cant be enabled in wire mode, since it messes up the view - Campbell */
|
||||||
glEnable(GL_DEPTH_TEST);
|
glEnable(GL_DEPTH_TEST);
|
||||||
|
#endif
|
||||||
|
|
||||||
if(states)
|
if(states)
|
||||||
MEM_freeN(states);
|
MEM_freeN(states);
|
||||||
|
Loading…
Reference in New Issue
Block a user