mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-13 12:22:15 +02:00
Merge pull request #32 from FluffyJenkins/bug/SecondaryCamCrash
Workaround for Secondary camera crash
This commit is contained in:
commit
8771f619ec
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