diff --git a/es-core/src/resources/TextureData.cpp b/es-core/src/resources/TextureData.cpp index 28d1dc154..e51908489 100644 --- a/es-core/src/resources/TextureData.cpp +++ b/es-core/src/resources/TextureData.cpp @@ -63,7 +63,7 @@ bool TextureData::initSVGFromMemory(const std::string& fileData) NSVGimage* svgImage{nsvgParse(const_cast(fileData.c_str()), "px", DPI)}; - if (!svgImage) { + if (!svgImage || svgImage->width == 0 || svgImage->height == 0) { LOG(LogError) << "Couldn't parse SVG image"; return false; }