Skip to content

Commit

Permalink
- fix null pointer crash
Browse files Browse the repository at this point in the history
  • Loading branch information
dpjudas authored and coelckers committed Jan 12, 2019
1 parent 078c10d commit 9addc4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/swrenderer/textures/r_swtexture.h
Expand Up @@ -191,8 +191,8 @@ class FSWCanvasTexture : public FSoftwareTexture
virtual void Unload() override;
void UpdatePixels(bool truecolor);

DCanvas *GetCanvas() { return Canvas; }
DCanvas *GetCanvasBgra() { return CanvasBgra; }
DCanvas *GetCanvas() { GetPixels(0); return Canvas; }
DCanvas *GetCanvasBgra() { GetPixelsBgra(); return CanvasBgra; }
bool Mipmapped() override { return false; }

};

0 comments on commit 9addc4c

Please sign in to comment.