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 )
|
switch( format )
|
||||||
{
|
{
|
||||||
${blockExtentCases}
|
${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, "," );
|
std::vector<std::string> blockExtent = tokenize( traitIt->second.blockExtent, "," );
|
||||||
assert( blockExtent.size() == 3 );
|
assert( blockExtent.size() == 3 );
|
||||||
blockExtentCases +=
|
blockExtentCases +=
|
||||||
caseString + " return { " + blockExtent[0] + ", " + blockExtent[1] + ", " + blockExtent[2] + " };\n";
|
caseString + " return {{ " + blockExtent[0] + ", " + blockExtent[1] + ", " + blockExtent[2] + " }};\n";
|
||||||
}
|
}
|
||||||
if ( !traitIt->second.compressed.empty() )
|
if ( !traitIt->second.compressed.empty() )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user