SW backend: make shaders work on Intel/Windows.

A couple of minor tweaks so the Intel drivers on Windows don't reject
the shaders, and actually draw something. So much nicer than
using "take screenshot" to see what's on the screen. :)