diff options
Diffstat (limited to 'libs/rs')
-rw-r--r-- | libs/rs/rsContext.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/rs/rsContext.cpp b/libs/rs/rsContext.cpp index c437d72..6a065b2 100644 --- a/libs/rs/rsContext.cpp +++ b/libs/rs/rsContext.cpp @@ -539,6 +539,7 @@ void Context::destroyWorkerThreadResources() { } ObjectBase::zeroAllUserRef(this); LOGV("destroyWorkerThreadResources 2"); + mExit = true; } void * Context::helperThreadProc(void *vrsc) { @@ -713,6 +714,9 @@ bool Context::initContext(Device *dev, const RsSurfaceConfig *sc) { Context::~Context() { LOGV("Context::~Context"); + + mIO.mToCore.flush(); + rsAssert(mExit); mExit = true; mPaused = false; void *res; |