Do not consider uniforms with names containing .@data.
as valid uniforms
This commit is contained in:
parent
fdb09ca401
commit
897d714910
@ -539,7 +539,8 @@ namespace bgfx { namespace metal
|
||||
Uniform un;
|
||||
un.name = program->getUniformName(ii);
|
||||
|
||||
if (bx::hasSuffix(un.name.c_str(), ".@data") )
|
||||
if (bx::hasSuffix(un.name.c_str(), ".@data")
|
||||
|| !bx::strFind(un.name.c_str(), ".@data.").isEmpty() )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
@ -664,7 +664,8 @@ namespace bgfx { namespace spirv
|
||||
Uniform un;
|
||||
un.name = program->getUniformName(ii);
|
||||
|
||||
if (bx::hasSuffix(un.name.c_str(), ".@data") )
|
||||
if (bx::hasSuffix(un.name.c_str(), ".@data")
|
||||
|| !bx::strFind(un.name.c_str(), ".@data.").isEmpty() )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user