diff --git a/frameworks/components/root_view.cpp b/frameworks/components/root_view.cpp index dcee8fb1a09da13a4cd5e85915c986f9753eeac5..6ef2d2c3aaa93fe9fc7c16750ea93f42a9858b49 100755 --- a/frameworks/components/root_view.cpp +++ b/frameworks/components/root_view.cpp @@ -729,6 +729,9 @@ void RootView::InitDrawContext() if (dc_.bufferInfo != nullptr) { InitMapBufferInfo(dc_.bufferInfo); } + + bakDc_.bufferInfo = nullptr; + bakDc_.mapBufferInfo = nullptr; } void RootView::DestroyDrawContext()