Fix shader line numbers being out by one.

This commit is contained in:
Bill Currie 2016-02-13 12:30:47 +09:00
parent db6e0faae4
commit 6b2e45cae6

View file

@ -129,7 +129,7 @@ GLSL_BuildShader (const char **effect_keys)
Sys_Printf ("Unknown shader key: '%s'\n", dot);
goto error;
}
shader->strings[num] = nva ("#line %d\n%s", chunk->start_line,
shader->strings[num] = nva ("#line %d\n%s", chunk->start_line - 1,
chunk->text);
shader->src[num] = strdup (ekey->str);
}