mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 21:21:04 +00:00
Fix crash on vulkan with a large number of texture shaders.
This commit is contained in:
parent
6ab9991e8d
commit
8dbddfc365
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue