Fix animated textures not updating in swtruecolor mode
This commit is contained in:
parent
5963f29afd
commit
12a50c140c
4 changed files with 35 additions and 0 deletions
|
|
@ -78,6 +78,7 @@ public:
|
|||
|
||||
const BYTE *GetColumn(unsigned int column, const Span **spans_out);
|
||||
const BYTE *GetPixels();
|
||||
const uint32_t *GetPixelsBgra() override;
|
||||
bool CheckModified();
|
||||
|
||||
protected:
|
||||
|
|
@ -246,6 +247,16 @@ const BYTE *FBackdropTexture::GetPixels()
|
|||
return Pixels;
|
||||
}
|
||||
|
||||
const uint32_t *FBackdropTexture::GetPixelsBgra()
|
||||
{
|
||||
if (LastRenderTic != gametic)
|
||||
{
|
||||
Render();
|
||||
PixelsBgra.clear();
|
||||
}
|
||||
return FTexture::GetPixelsBgra();
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
//
|
||||
// This is one plasma and two rotozoomers. I think it turned out quite awesome.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue