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:
Vlad Zahorodnii 2024-01-19 10:52:42 +02:00
parent 7e8230a596
commit 0284610eff

View file

@ -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;