From 313ec62a5c1a650baa37626809619efdcc0e77ff Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 29 Dec 2018 12:58:12 +0100 Subject: [PATCH] - removed the static members from FMaterial. Their functionality has been moved to more appropriate places already and they were essentially unused. --- src/hwrenderer/textures/hw_material.cpp | 13 ------------- src/hwrenderer/textures/hw_material.h | 6 ------ 2 files changed, 19 deletions(-) diff --git a/src/hwrenderer/textures/hw_material.cpp b/src/hwrenderer/textures/hw_material.cpp index d24f0d69a..b07a7be4c 100644 --- a/src/hwrenderer/textures/hw_material.cpp +++ b/src/hwrenderer/textures/hw_material.cpp @@ -133,8 +133,6 @@ void IHardwareTexture::Resize(int swidth, int sheight, int width, int height, un // Constructor // //=========================================================================== -TArray 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; - static int mMaxBound; - TArray mTextureLayers; int mShaderIndex;