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) {
|
void RenderState::invokeFunctor(Functor* functor, DrawGlInfo::Mode mode, DrawGlInfo* info) {
|
||||||
|
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();
|
interruptForFunctorInvoke();
|
||||||
(*functor)(mode, info);
|
(*functor)(mode, info);
|
||||||
resumeFromFunctorInvoke();
|
resumeFromFunctorInvoke();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void RenderState::interruptForFunctorInvoke() {
|
void RenderState::interruptForFunctorInvoke() {
|
||||||
|
Reference in New Issue
Block a user