mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
Workaround for Secondary camera crash
This commit is contained in:
parent
6b5d1c6191
commit
83e9b891d8
1 changed files with 8 additions and 0 deletions
|
@ -130,6 +130,10 @@ void FetchSpatialTree::configure(const Config& config) {
|
|||
}
|
||||
|
||||
void FetchSpatialTree::run(const RenderContextPointer& renderContext, const Inputs& inputs, ItemSpatialTree::ItemSelection& outSelection) {
|
||||
if (!renderContext){
|
||||
return;
|
||||
}
|
||||
|
||||
// start fresh
|
||||
outSelection.clear();
|
||||
|
||||
|
@ -142,6 +146,10 @@ void FetchSpatialTree::run(const RenderContextPointer& renderContext, const Inpu
|
|||
RenderArgs* args = renderContext->args;
|
||||
auto& scene = renderContext->_scene;
|
||||
|
||||
if (!args) {
|
||||
return;
|
||||
}
|
||||
|
||||
auto queryFrustum = args->getViewFrustum();
|
||||
// Eventually use a frozen frustum
|
||||
if (_freezeFrustum) {
|
||||
|
|
Loading…
Reference in a new issue