From 8dbddfc365bc3a46f68e4c34913fe6df2ec57184 Mon Sep 17 00:00:00 2001 From: Marisa Kirisame Date: Wed, 25 Sep 2019 16:10:46 +0200 Subject: [PATCH] Fix crash on vulkan with a large number of texture shaders. --- src/rendering/vulkan/shaders/vk_shader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rendering/vulkan/shaders/vk_shader.cpp b/src/rendering/vulkan/shaders/vk_shader.cpp index 74d4bf0281..12f501db71 100644 --- a/src/rendering/vulkan/shaders/vk_shader.cpp +++ b/src/rendering/vulkan/shaders/vk_shader.cpp @@ -38,7 +38,7 @@ VkShaderManager::VkShaderManager(VulkanDevice *device) : device(device) FString defines = defaultshaders[usershaders[i].shaderType].Defines + usershaders[i].defines; VkShaderProgram prog; - prog.vert = LoadVertShader(name, mainvp, defaultshaders[i].Defines); + prog.vert = LoadVertShader(name, mainvp, defines); prog.frag = LoadFragShader(name, mainfp, usershaders[i].shader, defaultshaders[usershaders[i].shaderType].lightfunc, defines, true, gbufferpass); mMaterialShaders[j].push_back(std::move(prog)); }