Made vertex shader a bit more NVidia-friendly, fixed a nasty cursor position bug