- fix shaders only being loaded from the engine pk3

This commit is contained in:
Magnus Norddahl 2019-03-12 15:02:21 +01:00
commit aa84f7b3e6
3 changed files with 18 additions and 9 deletions

View file

@ -363,7 +363,7 @@ void VkPostprocess::CompileEffectShaders()
FString VkPostprocess::LoadShaderCode(const FString &lumpName, const FString &defines, int version)
{
int lump = Wads.CheckNumForFullName(lumpName, 0);
int lump = Wads.CheckNumForFullName(lumpName);
if (lump == -1) I_FatalError("Unable to load '%s'", lumpName.GetChars());
FString code = Wads.ReadLump(lump).GetString().GetChars();