Fix: multisample viewport drawing didn't work well with selection or particle
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Fri, 15 Mar 2013 19:56:33 +0000 (19:56 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Fri, 15 Mar 2013 19:56:33 +0000 (19:56 +0000)
commit2d21e6521f99825cd4c5783ca6866910947c7e13
tree6bd977781c715f8fa0c8ce5bb8e373ef57777c95
parent88cf1a2bc73bbd2f2fbf2ba3d5b1e7d4a1db7a93
Fix: multisample viewport drawing didn't work well with selection or particle
brushes, due to issues with color coded drawing or slow/buggy reading from such
a buffer on some systems.

In case multisample is enabled now, it uses an offscreen buffer for such drawing,
which is not multisampled and so should not cause issues. This does mean there is
some extra GPU memory usage when multisample is enabled, and we could optimize
triple buffer to work together here somehow to share buffers, but it's better than
having selection not working.
source/blender/blenloader/intern/readfile.c
source/blender/editors/include/ED_view3d.h
source/blender/editors/mesh/editface.c
source/blender/editors/physics/particle_edit.c
source/blender/editors/space_view3d/drawobject.c
source/blender/editors/space_view3d/space_view3d.c
source/blender/editors/space_view3d/view3d_draw.c
source/blender/gpu/GPU_extensions.h
source/blender/gpu/intern/gpu_extensions.c
source/blender/makesdna/DNA_view3d_types.h