Merge pull request #3684 from Sonicadvance1/fix_vertexshadergen_asserts Fix a few asserts in the VertexShaderGen.