mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 21:26:25 +02:00
FIx the mac crash when in front of a mirror by using the VIewFrustum stack correctly
This commit is contained in:
parent
c7f7e2487c
commit
d5496d68fd
1 changed files with 4 additions and 2 deletions
|
@ -380,6 +380,8 @@ void Antialiasing::run(const render::RenderContextPointer& renderContext, const
|
||||||
batch.setResourceTexture(AntialiasingPass_VelocityMapSlot, nullptr);
|
batch.setResourceTexture(AntialiasingPass_VelocityMapSlot, nullptr);
|
||||||
batch.setResourceTexture(AntialiasingPass_NextMapSlot, nullptr);
|
batch.setResourceTexture(AntialiasingPass_NextMapSlot, nullptr);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
args->popViewFrustum();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -520,7 +522,7 @@ void JitterSample::run(const render::RenderContextPointer& renderContext) {
|
||||||
|
|
||||||
viewFrustum.setProjection(projMat);
|
viewFrustum.setProjection(projMat);
|
||||||
viewFrustum.calculate();
|
viewFrustum.calculate();
|
||||||
args->setViewFrustum(viewFrustum);
|
args->pushViewFrustum(viewFrustum);
|
||||||
} else {
|
} else {
|
||||||
mat4 projMats[2];
|
mat4 projMats[2];
|
||||||
args->_context->getStereoProjections(projMats);
|
args->_context->getStereoProjections(projMats);
|
||||||
|
@ -538,4 +540,4 @@ void JitterSample::run(const render::RenderContextPointer& renderContext) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue