don't destroy dummy image texture if clearBackgroundImage has been called without setBackgroundImage having been called first

This commit is contained in:
Nick Fisher
2024-06-19 16:38:14 +08:00
parent 735612af66
commit 846f45bb63
2 changed files with 4 additions and 2 deletions

View File

@@ -211,6 +211,7 @@ namespace thermion_filament
uint32_t _imageWidth = 0;
mat4f _imageScale;
Texture *_imageTexture = nullptr;
Texture *_dummyImageTexture = nullptr;
utils::Entity _imageEntity;
VertexBuffer *_imageVb = nullptr;
IndexBuffer *_imageIb = nullptr;