diff options
-rw-r--r-- | src/gui/opengl/qopenglshaderprogram.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/opengl/qopenglshaderprogram.cpp b/src/gui/opengl/qopenglshaderprogram.cpp index 7d165aed48..2d99833fdf 100644 --- a/src/gui/opengl/qopenglshaderprogram.cpp +++ b/src/gui/opengl/qopenglshaderprogram.cpp @@ -471,7 +471,8 @@ static QVersionDirectivePosition findVersionDirectivePosition(const char *source } else { if (*c == QLatin1Char('#')) *c = QLatin1Char('_'); - state = MultiLineComment; + if (*c != QLatin1Char('*')) + state = MultiLineComment; } break; } |