Loading libs/hwui/OpenGLRenderer.cpp +4 −2 Original line number Original line Diff line number Diff line Loading @@ -471,12 +471,14 @@ status_t OpenGLRenderer::callDrawGLFunction(Functor* functor, Rect& dirty) { info.height = getSnapshot()->height; info.height = getSnapshot()->height; getSnapshot()->transform->copyTo(&info.transform[0]); getSnapshot()->transform->copyTo(&info.transform[0]); bool dirtyClip = mDirtyClip; // setup GL state for functor // setup GL state for functor if (mDirtyClip) { if (mDirtyClip) { setScissorFromClip(); setStencilFromClip(); // can issue draws, so must precede enableScissor()/interrupt() setStencilFromClip(); // can issue draws, so must precede enableScissor()/interrupt() } } mCaches.enableScissor(); if (mCaches.enableScissor() || dirtyClip) { setScissorFromClip(); } interrupt(); interrupt(); // call functor immediately after GL state setup // call functor immediately after GL state setup Loading Loading
libs/hwui/OpenGLRenderer.cpp +4 −2 Original line number Original line Diff line number Diff line Loading @@ -471,12 +471,14 @@ status_t OpenGLRenderer::callDrawGLFunction(Functor* functor, Rect& dirty) { info.height = getSnapshot()->height; info.height = getSnapshot()->height; getSnapshot()->transform->copyTo(&info.transform[0]); getSnapshot()->transform->copyTo(&info.transform[0]); bool dirtyClip = mDirtyClip; // setup GL state for functor // setup GL state for functor if (mDirtyClip) { if (mDirtyClip) { setScissorFromClip(); setStencilFromClip(); // can issue draws, so must precede enableScissor()/interrupt() setStencilFromClip(); // can issue draws, so must precede enableScissor()/interrupt() } } mCaches.enableScissor(); if (mCaches.enableScissor() || dirtyClip) { setScissorFromClip(); } interrupt(); interrupt(); // call functor immediately after GL state setup // call functor immediately after GL state setup Loading