[core] Fix assertion at RenderRasterLayer::prepare()

It shall consider that image data might not be available until
the source loads it.
This commit is contained in:
Mikhail Pozdnyakov
2019-07-25 16:09:09 +03:00
parent 273ad436fb
commit 8a6a332264
2 changed files with 5 additions and 2 deletions

View File

@@ -47,6 +47,7 @@ bool RenderLayer::supportsZoom(float zoom) const {
void RenderLayer::prepare(const LayerPrepareParameters& params) {
assert(params.source);
assert(params.source->isEnabled());
renderTiles = params.source->getRenderTiles();
addRenderPassesFromTiles();
}