diff --git a/libs/hwui/tests/common/TestUtils.cpp b/libs/hwui/tests/common/TestUtils.cpp index 3440d03b4fc52..9595a85e99dd4 100644 --- a/libs/hwui/tests/common/TestUtils.cpp +++ b/libs/hwui/tests/common/TestUtils.cpp @@ -162,6 +162,7 @@ void TestUtils::TestTask::run() { renderState.onGLContextCreated(); rtCallback(renderthread::RenderThread::getInstance()); + renderState.flush(Caches::FlushMode::Full); renderState.onGLContextDestroyed(); // Restore the previous signal handler