Merge pull request #1186 from sugoi1/master

Fix 'missing braces around initializer' warnings in vulkan_enums.hpp
This commit is contained in:
Andreas Süßenbach 2022-02-02 12:11:04 +01:00 committed by GitHub
commit 5156ca24af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -421,7 +421,7 @@ ${texelsPerBlockCases}
switch( format )
{
${blockExtentCases}
default: return {1, 1, 1 };
default: return {{1, 1, 1 }};
}
}
@ -557,7 +557,7 @@ ${planeWidthDivisorCases}
std::vector<std::string> blockExtent = tokenize( traitIt->second.blockExtent, "," );
assert( blockExtent.size() == 3 );
blockExtentCases +=
caseString + " return { " + blockExtent[0] + ", " + blockExtent[1] + ", " + blockExtent[2] + " };\n";
caseString + " return {{ " + blockExtent[0] + ", " + blockExtent[1] + ", " + blockExtent[2] + " }};\n";
}
if ( !traitIt->second.compressed.empty() )
{