Commit 98818393 authored by Jan Becker's avatar Jan Becker
Browse files

[gui] Fix crash in TextureCache if a texture is invalidated, first level...

[gui] Fix crash in TextureCache if a texture is invalidated, first level texture cache was not updated
parent a893d578
......@@ -54,6 +54,8 @@ bool Texture::load(TextureCache *cache, Alg::MapTreeNode *node) {
*bits = qRgb(224,224,224);
isDummy = true;
}
else
isDummy = false;
if ( node ) {
id.level = node->level();
......@@ -69,7 +71,6 @@ bool Texture::load(TextureCache *cache, Alg::MapTreeNode *node) {
w = image.width();
h = image.height();
data = (const QRgb*)image.bits();
isDummy = false;
return true;
}
......
Supports Markdown
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