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

Commit 6ef8e017 authored by Chris Craik's avatar Chris Craik
Browse files

Workaround to avoid polygon flashing DO NOT MERGE

b/15539571

Temporarily disables caching of tessellation.

Change-Id: If014b8c40664711aef761eec606d28aff1859b14
parent ffdd37ff
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -350,11 +350,12 @@ void TessellationCache::setMaxSize(uint32_t maxSize) {


void TessellationCache::trim() {
    uint32_t size = getSize();
    while (size > mMaxSize) {
        size -= mCache.peekOldestValue()->getSize();
        mCache.removeOldest();
    }
    // uint32_t size = getSize();
    // while (size > mMaxSize) {
    //     size -= mCache.peekOldestValue()->getSize();
    //     mCache.removeOldest();
    // }
    mCache.clear(); // Workaround caching tessellation corruption
    mShadowCache.clear();
}