Fixed an issue where the tile property for the image element did not work correctly with SVG images.

This commit is contained in:
Leon Styhre 2022-08-21 19:06:51 +02:00
parent ef2f3f3ba9
commit e2fb03dbf3

View file

@ -71,6 +71,11 @@ bool TextureData::initSVGFromMemory(const std::string& fileData)
bool rasterize {true};
if (mTile) {
mSourceWidth = svgImage->width;
mSourceHeight = svgImage->height;
}
// If there is no image size defined yet, then don't rasterize unless mForceRasterization has
// been set.
if (mSourceWidth == 0.0f && mSourceHeight == 0.0f) {