Move DefaultProbeResolution from Graphics to GraphicsSettings only (not runtime option)

#728
This commit is contained in:
Wojciech Figat
2022-07-14 15:37:54 +02:00
parent 53baccaf96
commit a8579cadcc
15 changed files with 98 additions and 96 deletions

View File

@@ -551,6 +551,8 @@ bool GPUTexture::Resize(int32 width, int32 height, int32 depth)
desc.Width = width;
desc.Height = height;
desc.Depth = depth;
if (desc.MipLevels > 1)
desc.MipLevels = CalculateMipMapCount(0, Math::Max(width, height));
// Recreate
return Init(desc);