Fix deprecated assertions from streamable assets (streaming uses job system now)

This commit is contained in:
Wojtek Figat
2021-07-11 12:03:56 +02:00
parent 1561eba6fb
commit 252b37ebfe
3 changed files with 1 additions and 7 deletions

View File

@@ -714,8 +714,6 @@ Task* Model::CreateStreamingTask(int32 residency)
}
else
{
ASSERT(IsInMainThread());
// Do the quick data release
for (int32 i = HighestResidentLODIndex(); i < LODs.Count() - residency; i++)
LODs[i].Unload();

View File

@@ -826,8 +826,6 @@ Task* SkinnedModel::CreateStreamingTask(int32 residency)
}
else
{
ASSERT(IsInMainThread());
// Do the quick data release
for (int32 i = HighestResidentLODIndex(); i < LODs.Count() - residency; i++)
LODs[i].Unload();

View File

@@ -427,8 +427,6 @@ Task* StreamingTexture::CreateStreamingTask(int32 residency)
}
else
{
ASSERT(IsInMainThread());
// Check if trim the mips down to 0 (full texture release)
if (residency == 0)
{
@@ -437,7 +435,7 @@ Task* StreamingTexture::CreateStreamingTask(int32 residency)
}
else
{
// TODO: create task for reducing texture quality, or update SRV now (it's MainThread now so it's safe)
// TODO: create task for reducing texture quality, or update SRV now
MISSING_CODE("add support for streaming quality down");
}
}