mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
vulkan/metal: fix a typo preventing non-array struct field uniforms from working.
This commit is contained in:
@@ -298,7 +298,7 @@ void Shader::buildLocalUniforms(const spirv_cross::CompilerMSL &msl, const spirv
|
||||
}
|
||||
else
|
||||
{
|
||||
std::string structname = name = ".";
|
||||
std::string structname = name + ".";
|
||||
buildLocalUniforms(msl, membertype, offset, structname);
|
||||
}
|
||||
continue;
|
||||
|
||||
@@ -427,7 +427,7 @@ void Shader::buildLocalUniforms(spirv_cross::Compiler &comp, const spirv_cross::
|
||||
}
|
||||
else
|
||||
{
|
||||
std::string structname = name = ".";
|
||||
std::string structname = name + ".";
|
||||
buildLocalUniforms(comp, memberType, offset, structname);
|
||||
}
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user