Permalink
Browse files

- fix null pointer crash

  • Loading branch information...
dpjudas committed Jan 11, 2019
1 parent e082672 commit bab9d612c3fb1261cd4c5d9e31ce1f7a4cb20b68
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/swrenderer/textures/r_swtexture.h
@@ -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 bab9d61

Please sign in to comment.