- removed the static members from FMaterial.

Their functionality has been moved to more appropriate places already and they were essentially unused.
This commit is contained in:
Christoph Oelckers 2018-12-29 12:58:12 +01:00
parent 20184e1e99
commit 313ec62a5c
2 changed files with 0 additions and 19 deletions

View file

@ -133,8 +133,6 @@ void IHardwareTexture::Resize(int swidth, int sheight, int width, int height, un
// Constructor
//
//===========================================================================
TArray<FMaterial *> FMaterial::mMaterials;
int FMaterial::mMaxBound;
FMaterial::FMaterial(FTexture * tx, bool expanded)
{
@ -227,8 +225,6 @@ FMaterial::FMaterial(FTexture * tx, bool expanded)
SetSpriteRect();
mTextureLayers.ShrinkToFit();
mMaxBound = -1;
mMaterials.Push(this);
tx->Material[expanded] = this;
if (tx->isHardwareCanvas()) tx->bTranslucent = 0;
}
@ -241,15 +237,6 @@ FMaterial::FMaterial(FTexture * tx, bool expanded)
FMaterial::~FMaterial()
{
for(unsigned i=0;i<mMaterials.Size();i++)
{
if (mMaterials[i]==this)
{
mMaterials.Delete(i);
break;
}
}
}
//===========================================================================

View file

@ -33,12 +33,6 @@ enum
class FMaterial
{
// This array is needed because not all textures are managed by the texture manager
// but some code needs to discard all hardware dependent data attached to any created texture.
// Font characters are not, for example.
static TArray<FMaterial *> mMaterials;
static int mMaxBound;
TArray<FTexture*> mTextureLayers;
int mShaderIndex;