Skip to content
Snippets Groups Projects
Commit 7e4ef22c authored by Rhys Weatherley's avatar Rhys Weatherley
Browse files

Add extra variant flags for GLSL keywords

parent f096b53b
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment