opengl: Fix parsing of the else branch
`it` points to `#else`. We need to move to the next line. BUG: 479279
This commit is contained in:
parent
7e8230a596
commit
0284610eff
1 changed files with 1 additions and 0 deletions
|
@ -256,6 +256,7 @@ std::optional<QByteArray> ShaderManager::preprocess(const QByteArray &src, int r
|
|||
if (it->startsWith("#endif")) {
|
||||
break;
|
||||
} else if (it->startsWith("#else")) {
|
||||
it++;
|
||||
for (; it != split.end(); it++) {
|
||||
if (it->startsWith("#endif")) {
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue