Use soft asset ref to graphics settings

#1852
This commit is contained in:
Wojtek Figat
2023-11-03 19:23:38 +01:00
parent 6f1ee382b5
commit 224e43ea55
3 changed files with 10 additions and 9 deletions

View File

@@ -22,10 +22,10 @@ TextureHeader::TextureHeader()
TextureGroup = -1;
}
TextureHeader::TextureHeader(TextureHeader_Deprecated& old)
TextureHeader::TextureHeader(const TextureHeader_Deprecated& old)
{
Platform::MemoryClear(this, sizeof(*this));
Width = old.Width;;
Width = old.Width;
Height = old.Height;
MipLevels = old.MipLevels;
Format = old.Format;
@@ -49,7 +49,7 @@ StreamingTexture::StreamingTexture(ITextureOwner* parent, const String& name)
, _texture(nullptr)
, _isBlockCompressed(false)
{
ASSERT(_owner != nullptr);
ASSERT(parent != nullptr);
// Always have created texture object
ASSERT(GPUDevice::Instance);

View File

@@ -106,5 +106,5 @@ struct FLAXENGINE_API TextureHeader
byte CustomData[10];
TextureHeader();
TextureHeader(TextureHeader_Deprecated& old);
TextureHeader(const TextureHeader_Deprecated& old);
};