We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fad3c66 commit 95cd24bCopy full SHA for 95cd24b
1 file changed
libs/hwui/renderstate/RenderState.cpp
@@ -124,9 +124,15 @@ void RenderState::bindFramebuffer(GLuint fbo) {
124
}
125
126
void RenderState::invokeFunctor(Functor* functor, DrawGlInfo::Mode mode, DrawGlInfo* info) {
127
- interruptForFunctorInvoke();
128
- (*functor)(mode, info);
129
- resumeFromFunctorInvoke();
+ if (mode == DrawGlInfo::kModeProcessNoContext) {
+ // If there's no context we don't need to interrupt as there's
+ // no gl state to save/restore
130
+ (*functor)(mode, info);
131
+ } else {
132
+ interruptForFunctorInvoke();
133
134
+ resumeFromFunctorInvoke();
135
+ }
136
137
138
void RenderState::interruptForFunctorInvoke() {
0 commit comments