diff --git a/src/plugins/glsleditor/glsleditor.cpp b/src/plugins/glsleditor/glsleditor.cpp index aa64cab5cc0d56ec111411642f6b1a7596e90e7b..124f2d4a6a99a7372fb853e71c4a761780104ca0 100644 --- a/src/plugins/glsleditor/glsleditor.cpp +++ b/src/plugins/glsleditor/glsleditor.cpp @@ -246,7 +246,10 @@ void GLSLTextEditor::updateDocumentNow() { m_updateDocumentTimer->stop(); - const int variant = Lexer::Variant_GLSL_Qt; // ### hardcoded + const int variant = Lexer::Variant_GLSL_Qt | // ### hardcoded + Lexer::Variant_GLSL_ES_100 | + Lexer::Variant_VertexShader | + Lexer::Variant_FragmentShader; const QString contents = toPlainText(); // get the code from the editor const QByteArray preprocessedCode = contents.toLatin1(); // ### use the QtCreator C++ preprocessor.