bugfix [#23118] Blender freezes when combing hair - OS X path changes related?
authorCampbell Barton <ideasman42@gmail.com>
Fri, 26 Nov 2010 12:57:35 +0000 (12:57 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 26 Nov 2010 12:57:35 +0000 (12:57 +0000)
commita44acdf348693ed5b6d64c1a84969578a513c0f6
tree8b439c6a5b143270b6aee300b117781f5fab1f94
parentc2cd9ab039e57dce489b13e4653f461369bd65c6
bugfix [#23118] Blender freezes when combing hair - OS X path changes related?
- glReadPixels() was running to get the depth on each pixel, this works fine one some cards but was locking up on OSX.
- Replace glReadPixels() call with a single call to view3d_update_depths() right after view3d_validate_backbuf(), so the depths are only read once.
- Unrelated to the changes above, but should improve performance: view3d_validate_backbuf() was being called on every redraw while combing, now only call once when combing starts.
source/blender/editors/include/ED_view3d.h
source/blender/editors/physics/particle_edit.c
source/blender/editors/space_view3d/view3d_intern.h