Fix poor batching with mac/ancient drivers. Also, some minor tweaks to sorting algorithm.
Merge branch 'master' of git://github.com/Shyotl/SingularityViewer