File tree Expand file tree Collapse file tree 4 files changed +0
-13
lines changed Expand file tree Collapse file tree 4 files changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -36,11 +36,6 @@ BitmapSkin::BitmapSkin(libscratchcpp::Costume *costume) :
36
36
qWarning () << " invalid bitmap texture (costume name: " + costume->name () + " )" ;
37
37
}
38
38
39
- BitmapSkin::~BitmapSkin ()
40
- {
41
- m_texture.release ();
42
- }
43
-
44
39
Texture BitmapSkin::getTexture (double scale) const
45
40
{
46
41
return m_texture;
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ class BitmapSkin : public Skin
19
19
{
20
20
public:
21
21
BitmapSkin (libscratchcpp::Costume *costume);
22
- ~BitmapSkin ();
23
22
24
23
Texture getTexture (double scale) const override ;
25
24
double getTextureScale (const Texture &texture) const override ;
Original file line number Diff line number Diff line change @@ -29,12 +29,6 @@ SVGSkin::SVGSkin(libscratchcpp::Costume *costume) :
29
29
m_maxIndex = std::min (i1, i2);
30
30
}
31
31
32
- SVGSkin::~SVGSkin ()
33
- {
34
- for (const auto &[index, texture] : m_textures)
35
- m_textureObjects[texture].release ();
36
- }
37
-
38
32
Texture SVGSkin::getTexture (double scale) const
39
33
{
40
34
// https://github.com/scratchfoundation/scratch-render/blob/423bb700c36b8c1c0baae1e2413878a4f778849a/src/SVGSkin.js#L158-L176
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ class SVGSkin : public Skin
21
21
{
22
22
public:
23
23
SVGSkin (libscratchcpp::Costume *costume);
24
- ~SVGSkin ();
25
24
26
25
Texture getTexture (double scale) const override ;
27
26
double getTextureScale (const Texture &texture) const override ;
You can’t perform that action at this time.
0 commit comments