am 70e5db94
: Merge "Fix crash in kModeProcessNoContext" into mnc-dev
* commit '70e5db9413f82bf1f000bd99b3d2dbecf6e4ab04': Fix crash in kModeProcessNoContext
This commit is contained in:
@ -124,9 +124,15 @@ void RenderState::bindFramebuffer(GLuint fbo) {
|
||||
}
|
||||
|
||||
void RenderState::invokeFunctor(Functor* functor, DrawGlInfo::Mode mode, DrawGlInfo* info) {
|
||||
interruptForFunctorInvoke();
|
||||
(*functor)(mode, info);
|
||||
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
|
||||
(*functor)(mode, info);
|
||||
} else {
|
||||
interruptForFunctorInvoke();
|
||||
(*functor)(mode, info);
|
||||
resumeFromFunctorInvoke();
|
||||
}
|
||||
}
|
||||
|
||||
void RenderState::interruptForFunctorInvoke() {
|
||||
|
Reference in New Issue
Block a user