2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 10:27:42 +00:00

Working HECL shader generation on D3D11/12

This commit is contained in:
Jack Andersen
2015-11-17 20:16:08 -10:00
parent 05f3854449
commit 6387b420ae
9 changed files with 79 additions and 15 deletions

View File

@@ -10,17 +10,17 @@ namespace Frontend
void Parser::skipWhitespace(std::string::const_iterator& it)
{
while (true)
while (it != m_source->cend())
{
while (isspace(*it) && it != m_source->cend())
while (it != m_source->cend() && isspace(*it))
++it;
/* Skip comment line */
if (*it == '#')
if (it != m_source->cend() && *it == '#')
{
while (*it != '\n' && it != m_source->cend())
while (it != m_source->cend() && *it != '\n')
++it;
if (*it == '\n')
if (it != m_source->cend() && *it == '\n')
++it;
continue;
}