Fix compilation without GPU resources naming enabled

This commit is contained in:
Wojtek Figat
2024-01-11 17:59:34 +01:00
parent 697db443ac
commit 1da803c5fb

View File

@@ -297,7 +297,11 @@ Task* StreamingTexture::UpdateAllocation(int32 residency)
if (texture->Init(desc))
{
Streaming.Error = true;
LOG(Error, "Cannot allocate texture {0}.", texture->GetName());
#if GPU_ENABLE_RESOURCE_NAMING
LOG(Error, "Cannot allocate texture {0}", texture->GetName());
#else
LOG(Error, "Cannot allocate texture");
#endif
}
if (allocatedResidency != 0)
{