mirror of
https://github.com/love2d/love.git
synced 2026-08-19 20:19:42 +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
|
else
|
||||||
{
|
{
|
||||||
std::string structname = name = ".";
|
std::string structname = name + ".";
|
||||||
buildLocalUniforms(msl, membertype, offset, structname);
|
buildLocalUniforms(msl, membertype, offset, structname);
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
@@ -427,7 +427,7 @@ void Shader::buildLocalUniforms(spirv_cross::Compiler &comp, const spirv_cross::
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
std::string structname = name = ".";
|
std::string structname = name + ".";
|
||||||
buildLocalUniforms(comp, memberType, offset, structname);
|
buildLocalUniforms(comp, memberType, offset, structname);
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user