mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
- fixed: hwrenderer materials were nullptr checked but the pointers were not always properly initialized
This commit is contained in:
parent
62d4bbbe65
commit
8c1db978b8
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -90,7 +90,7 @@ struct FStateVec4
|
|||
|
||||
struct FMaterialState
|
||||
{
|
||||
FMaterial *mMaterial;
|
||||
FMaterial *mMaterial = nullptr;
|
||||
int mClampMode;
|
||||
int mTranslation;
|
||||
int mOverrideShader;
|
||||
|
|
Loading…
Reference in a new issue