Fix The rest of UI7 Mem leaks
Throw OneFrame living objs into a pool
This commit is contained in:
@@ -32,6 +32,7 @@ namespace UI7 {
|
||||
*/
|
||||
class PD_API Image : public Container {
|
||||
public:
|
||||
Image() {}
|
||||
/**
|
||||
* Constructor for the Image Object
|
||||
* @param img Image Texture Reference
|
||||
@@ -57,6 +58,13 @@ class PD_API Image : public Container {
|
||||
* */
|
||||
void Draw() override;
|
||||
|
||||
void Reset() override {
|
||||
Container::Reset();
|
||||
img = Li::Texture();
|
||||
newsize = 0.f;
|
||||
cuv = Li::Rect();
|
||||
}
|
||||
|
||||
private:
|
||||
Li::Texture img; ///< Texture
|
||||
fvec2 newsize = 0.f; ///< New Size
|
||||
|
||||
Reference in New Issue
Block a user