mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-22 20:11:14 +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 "zvulkan/vulkanbuilders.h"
|
||||||
#include "halffloat.h"
|
#include "halffloat.h"
|
||||||
#include "filesystem.h"
|
#include "filesystem.h"
|
||||||
|
#include "cmdlib.h"
|
||||||
|
|
||||||
VkLightmap::VkLightmap(VulkanRenderDevice* fb) : fb(fb)
|
VkLightmap::VkLightmap(VulkanRenderDevice* fb) : fb(fb)
|
||||||
{
|
{
|
||||||
|
@ -371,8 +372,7 @@ FString VkLightmap::LoadPrivateShaderLump(const char* lumpname)
|
||||||
{
|
{
|
||||||
int lump = fileSystem.CheckNumForFullName(lumpname, 0);
|
int lump = fileSystem.CheckNumForFullName(lumpname, 0);
|
||||||
if (lump == -1) I_Error("Unable to load '%s'", lumpname);
|
if (lump == -1) I_Error("Unable to load '%s'", lumpname);
|
||||||
auto data = fileSystem.ReadFile(lump);
|
return GetStringFromLump(lump);
|
||||||
return data.GetString();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void VkLightmap::CreateRaytracePipeline()
|
void VkLightmap::CreateRaytracePipeline()
|
||||||
|
|
Loading…
Reference in a new issue