Skip to content

Commit 5441775

Browse files
committed
SvgSkin: Do not create all textures when project loads
1 parent 8a5a00c commit 5441775

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/svgskin.cpp

-5
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@ SVGSkin::SVGSkin(libscratchcpp::Costume *costume, bool antialiasing) :
2828
const int i1 = std::log2(MAX_TEXTURE_DIMENSION / viewBox.width()) + INDEX_OFFSET;
2929
const int i2 = std::log2(MAX_TEXTURE_DIMENSION / viewBox.height()) + INDEX_OFFSET;
3030
m_maxIndex = std::min(i1, i2);
31-
32-
// Create all possible textures (the 1.0 scale is stored at INDEX_OFFSET)
33-
// TODO: Is this necessary?
34-
for (int i = 0; i <= m_maxIndex; i++)
35-
createScaledTexture(i);
3631
}
3732

3833
SVGSkin::~SVGSkin()

0 commit comments

Comments
 (0)