fix lump loading.

This commit is contained in:
Christoph Oelckers 2023-09-17 20:50:43 +02:00
parent c5b03e016e
commit 71d06a397e

View file

@ -4,6 +4,7 @@
#include "zvulkan/vulkanbuilders.h"
#include "halffloat.h"
#include "filesystem.h"
#include "cmdlib.h"
VkLightmap::VkLightmap(VulkanRenderDevice* fb) : fb(fb)
{
@ -371,8 +372,7 @@ FString VkLightmap::LoadPrivateShaderLump(const char* lumpname)
{
int lump = fileSystem.CheckNumForFullName(lumpname, 0);
if (lump == -1) I_Error("Unable to load '%s'", lumpname);
auto data = fileSystem.ReadFile(lump);
return data.GetString();
return GetStringFromLump(lump);
}
void VkLightmap::CreateRaytracePipeline()