Improve stereo rendering

This fixes some bugs in the stereo support I added a while ago, and improves the stereo effect.

This is the Hydro version of  #789 which is for Indigo.