Possible fix for polylines on Linux and Android.

This fixes polylines when running on Windows without ANGLE and possibly for #690.