* commit 'd08fb6878f0f8fdf7a527384028359c7fcf991da': Fix a race condition that could cause lockup
This commit is contained in:
@@ -248,11 +248,6 @@ void Caches::clearGarbage() {
|
|||||||
void Caches::flush(FlushMode mode) {
|
void Caches::flush(FlushMode mode) {
|
||||||
FLUSH_LOGD("Flushing caches (mode %d)", mode);
|
FLUSH_LOGD("Flushing caches (mode %d)", mode);
|
||||||
|
|
||||||
// We must stop tasks before clearing caches
|
|
||||||
if (mode > kFlushMode_Layers) {
|
|
||||||
tasks.stop();
|
|
||||||
}
|
|
||||||
|
|
||||||
switch (mode) {
|
switch (mode) {
|
||||||
case kFlushMode_Full:
|
case kFlushMode_Full:
|
||||||
textureCache.clear();
|
textureCache.clear();
|
||||||
|
|||||||
Reference in New Issue
Block a user