mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 09:33: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) {
|
||||
RenderArgs* args = renderContext->args;
|
||||
|
||||
// Reset the render args
|
||||
args->popViewFrustum();
|
||||
if (args->_renderMode == RenderArgs::SHADOW_RENDER_MODE) {
|
||||
// Reset the render args
|
||||
args->popViewFrustum();
|
||||
}
|
||||
assert(args->hasViewFrustum());
|
||||
args->_renderMode = input;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue