matdbg: fix active variant list, update README.

This commit is contained in:
Philip Rideout
2021-07-14 09:19:45 -07:00
parent 4080a0a5d5
commit 32b3f16573
9 changed files with 53 additions and 31 deletions

View File

@@ -515,7 +515,7 @@ const DebugServer::MaterialRecord* DebugServer::getRecord(const MaterialKey& key
void DebugServer::updateActiveVariants() {
if (mQueryCallback) {
for (auto& pair : mMaterialRecords) {
uint64_t& result = mMaterialRecords[pair.first].activeVariants;
VariantList& result = mMaterialRecords[pair.first].activeVariants;
mQueryCallback(pair.second.userdata, &result);
}
}