mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +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);
|
bool TrimBorders(uint16_t *rect);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
FTexture *tex;
|
FTexture *tex = nullptr;
|
||||||
FTexture *sourcetex; // in case of redirection this is different from tex.
|
FTexture *sourcetex; // in case of redirection this is different from tex.
|
||||||
|
|
||||||
FMaterial(FTexture *tex, bool forceexpand);
|
FMaterial(FTexture *tex, bool forceexpand);
|
||||||
|
|
|
@ -90,7 +90,7 @@ struct FStateVec4
|
||||||
|
|
||||||
struct FMaterialState
|
struct FMaterialState
|
||||||
{
|
{
|
||||||
FMaterial *mMaterial;
|
FMaterial *mMaterial = nullptr;
|
||||||
int mClampMode;
|
int mClampMode;
|
||||||
int mTranslation;
|
int mTranslation;
|
||||||
int mOverrideShader;
|
int mOverrideShader;
|
||||||
|
|
Loading…
Reference in a new issue