mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-22 12:01:13 +00:00
fix lump loading.
This commit is contained in:
parent
c5b03e016e
commit
71d06a397e
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue