Repair Vulkan: addBlob should return an index. (#1156)

This commit is contained in:
Philip Rideout
2019-04-30 14:08:39 -07:00
committed by GitHub
parent 2bc0e49bc7
commit b9879cf23b

View File

@@ -48,7 +48,7 @@ size_t BlobDictionary::addBlob(const std::vector<uint32_t>& vblob) noexcept {
size_t size = blob.size();
mBlobs.push_back(std::move(blob));
mStorageSize += size;
return size - 1;
return mBlobs.size() - 1;
}
} // namespace filamat