Merge pull request #1623 from attilaz/to-static-fix
Fix for 'used samplers was converted to static'
This commit is contained in:
commit
aa28916b87
@ -699,6 +699,13 @@ namespace bgfx { namespace spirv
|
||||
{
|
||||
bool found = false;
|
||||
|
||||
if (!bx::findIdentifierMatch(strLine.c_str(), "SamplerState").isEmpty())
|
||||
{
|
||||
found = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
for (int32_t ii = 0, num = program->getNumLiveUniformVariables(); ii < num; ++ii)
|
||||
{
|
||||
// matching lines like: uniform u_name;
|
||||
@ -712,6 +719,7 @@ namespace bgfx { namespace spirv
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!found)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user