- fixed: Vulkan did not define NPOT_EMULATION for its fragment shader.

This commit is contained in:
Christoph Oelckers 2021-04-08 09:29:08 +02:00
parent 8cc3a81c3b
commit e0ee3a6701

View file

@ -296,6 +296,9 @@ std::unique_ptr<VulkanShader> VkShaderManager::LoadFragShader(FString shadername
code << defines;
code << "\n$placeholder$"; // here the code can later add more needed #defines.
code << "\n#define MAX_STREAM_DATA " << std::to_string(MAX_STREAM_DATA).c_str() << "\n";
#ifdef NPOT_EMULATION
code << "#define NPOT_EMULATION\n";
#endif
code << shaderBindings;
FString placeholder = "\n";