Fix crash on vulkan with a large number of texture shaders.

This commit is contained in:
Marisa Kirisame 2019-09-25 16:10:46 +02:00 committed by alexey.lysiuk
parent 6ab9991e8d
commit 8dbddfc365

View file

@ -38,7 +38,7 @@ VkShaderManager::VkShaderManager(VulkanDevice *device) : device(device)
FString defines = defaultshaders[usershaders[i].shaderType].Defines + usershaders[i].defines; FString defines = defaultshaders[usershaders[i].shaderType].Defines + usershaders[i].defines;
VkShaderProgram prog; 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); prog.frag = LoadFragShader(name, mainfp, usershaders[i].shader, defaultshaders[usershaders[i].shaderType].lightfunc, defines, true, gbufferpass);
mMaterialShaders[j].push_back(std::move(prog)); mMaterialShaders[j].push_back(std::move(prog));
} }