This commit is contained in:
Branimir Karadžić 2023-06-29 09:25:54 -07:00
parent e74c3a82dd
commit 787ecc1138
2 changed files with 2 additions and 1 deletions

View File

@ -96,6 +96,7 @@ project "spirv-opt"
configuration { "vs*" }
buildoptions {
"/wd4127", -- warning C4127: conditional expression is constant
"/wd4267", -- warning C4267: 'argument': conversion from '' to '', possible loss of data
"/wd4389", -- warning C4389: '==': signed/unsigned mismatch
"/wd4702", -- warning C4702: unreachable code
"/wd4706", -- warning C4706: assignment within conditional expression

View File

@ -533,7 +533,7 @@ namespace bgfx { namespace hlsl
if (end.isEmpty())
end = bx::strFind(bindDesc.Name, "Texture");
if (!end.isEmpty())
if (!end.isEmpty() )
{
Uniform un;
un.name.assign(bindDesc.Name, (end.getPtr() - bindDesc.Name) );