- fixed: hwrenderer materials were nullptr checked but the pointers were not always properly initialized

This commit is contained in:
Rachael Alexanderson 2020-04-21 09:41:22 -04:00
parent 62d4bbbe65
commit 8c1db978b8
2 changed files with 2 additions and 2 deletions

View file

@ -47,7 +47,7 @@ class FMaterial
bool TrimBorders(uint16_t *rect);
public:
FTexture *tex;
FTexture *tex = nullptr;
FTexture *sourcetex; // in case of redirection this is different from tex.
FMaterial(FTexture *tex, bool forceexpand);

View file

@ -90,7 +90,7 @@ struct FStateVec4
struct FMaterialState
{
FMaterial *mMaterial;
FMaterial *mMaterial = nullptr;
int mClampMode;
int mTranslation;
int mOverrideShader;