mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Merge pull request #1186 from sugoi1/master
Fix 'missing braces around initializer' warnings in vulkan_enums.hpp
This commit is contained in:
commit
5156ca24af
@ -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() )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user