mirror of
https://github.com/overte-org/overte.git
synced 2025-08-05 17:09:36 +02:00
Fixed potential mismatch between push/popViewFrustum in shadow task
This commit is contained in:
parent
e4818f1b4f
commit
e574be7855
1 changed files with 5 additions and 2 deletions
|
@ -263,7 +263,10 @@ void RenderShadowSetup::run(const render::RenderContextPointer& renderContext, O
|
||||||
void RenderShadowTeardown::run(const render::RenderContextPointer& renderContext, const Input& input) {
|
void RenderShadowTeardown::run(const render::RenderContextPointer& renderContext, const Input& input) {
|
||||||
RenderArgs* args = renderContext->args;
|
RenderArgs* args = renderContext->args;
|
||||||
|
|
||||||
|
if (args->_renderMode == RenderArgs::SHADOW_RENDER_MODE) {
|
||||||
// Reset the render args
|
// Reset the render args
|
||||||
args->popViewFrustum();
|
args->popViewFrustum();
|
||||||
|
}
|
||||||
|
assert(args->hasViewFrustum());
|
||||||
args->_renderMode = input;
|
args->_renderMode = input;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue