Merge pull request #748 from dgkoch/dgkoch_build_fixes2
More build fixes
This commit is contained in:
@@ -5178,7 +5178,7 @@ TType* HlslParseContext::getStructBufferContentType(const TType& type) const
|
|||||||
if (type.getBasicType() != EbtBlock)
|
if (type.getBasicType() != EbtBlock)
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
||||||
const int memberCount = type.getStruct()->size();
|
const int memberCount = (int)type.getStruct()->size();
|
||||||
assert(memberCount > 0);
|
assert(memberCount > 0);
|
||||||
|
|
||||||
TType* contentType = (*type.getStruct())[memberCount-1].type;
|
TType* contentType = (*type.getStruct())[memberCount-1].type;
|
||||||
|
|||||||
Reference in New Issue
Block a user