Commit 67e26633 authored by Aloshi's avatar Aloshi

Fixed assert being triggered due to divide by zero in...

Fixed assert being triggered due to divide by zero in HelpComponent::updateGrid due to SVG textures being deinitialized when closing ES with a menu open.
parent cb54d8ae
......@@ -40,6 +40,8 @@ void ImageComponent::resize()
SVGResource* svg = dynamic_cast<SVGResource*>(mTexture.get());
const Eigen::Vector2f textureSize = svg ? svg->getSourceImageSize() : Eigen::Vector2f((float)mTexture->getSize().x(), (float)mTexture->getSize().y());
if(textureSize.isZero())
return;
if(mTexture->isTiled())
{
......
......@@ -272,9 +272,9 @@ int main(int argc, char* argv[])
Log::flush();
}
window.deinit();
while(window.peekGui() != window.getViewController())
delete window.peekGui();
window.deinit();
SystemData::deleteSystems();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment