mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 15:21:51 +00:00
- fix missing forward declaration when falling back to older user shaders
This commit is contained in:
parent
a0a7fd53e8
commit
7da61ddfee
1 changed files with 1 additions and 0 deletions
|
@ -247,6 +247,7 @@ bool FShader::Load(const char * name, const char * vert_prog_lump, const char *
|
||||||
if (pp_data.GetString().IndexOf("ProcessLight") >= 0)
|
if (pp_data.GetString().IndexOf("ProcessLight") >= 0)
|
||||||
{
|
{
|
||||||
// The ProcessLight signatured changed. Forward to the old one.
|
// The ProcessLight signatured changed. Forward to the old one.
|
||||||
|
fp_comb << "\nvec4 ProcessLight(vec4 color);\n";
|
||||||
fp_comb << "\nvec4 ProcessLight(Material material, vec4 color) { return ProcessLight(color); }\n";
|
fp_comb << "\nvec4 ProcessLight(Material material, vec4 color) { return ProcessLight(color); }\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue