diff --git a/src/gui/opengl/qopenglshaderprogram.cpp b/src/gui/opengl/qopenglshaderprogram.cpp index 7d165aed488..2d99833fdfc 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; }