Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ff5c8e80 authored by Chris Craik's avatar Chris Craik
Browse files

Fix double create of Caches

bug:19208182
Change-Id: I91ac591cecc207da1b102013ca4985dd075cca80
parent 1b68ce32
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -46,7 +46,9 @@ void RenderState::onGLContextCreated() {
    mStencil = new Stencil();

    // This is delayed because the first access of Caches makes GL calls
    if (!mCaches) {
        mCaches = &Caches::createInstance(*this);
    }
    mCaches->init();
    mCaches->textureCache.setAssetAtlas(&mAssetAtlas);
}