mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-25 13:11:00 +00:00
Fix shader line numbers being out by one.
This commit is contained in:
parent
db6e0faae4
commit
6b2e45cae6
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue