- fix null pointer crash

This commit is contained in:
Magnus Norddahl 2019-01-11 19:44:52 +01:00 committed by Christoph Oelckers
parent 7c0633a3e9
commit d3205f46a8

View file

@ -191,8 +191,8 @@ public:
virtual void Unload() override; virtual void Unload() override;
void UpdatePixels(bool truecolor); void UpdatePixels(bool truecolor);
DCanvas *GetCanvas() { return Canvas; } DCanvas *GetCanvas() { GetPixels(0); return Canvas; }
DCanvas *GetCanvasBgra() { return CanvasBgra; } DCanvas *GetCanvasBgra() { GetPixelsBgra(); return CanvasBgra; }
bool Mipmapped() override { return false; } bool Mipmapped() override { return false; }
}; };