Merge pull request #5096 from Armada651/anything-with-a-viewport VertexShaderGen: Correct for negative viewport dimensions.