mirror of
https://github.com/overte-org/overte.git
synced 2025-04-15 18:39:51 +02:00
cleanup for code review
This commit is contained in:
parent
778820edb4
commit
db9a4d6b8f
5 changed files with 2 additions and 11 deletions
|
@ -271,10 +271,7 @@ void OctreeQueryNode::dumpOutOfView() {
|
|||
int outOfView = 0;
|
||||
OctreeElementBag tempBag;
|
||||
ViewFrustum viewCopy;
|
||||
{
|
||||
QMutexLocker viewLocker(&_viewMutex);
|
||||
viewCopy = _currentViewFrustum;
|
||||
}
|
||||
copyCurrentViewFrustum(viewCopy);
|
||||
while (OctreeElementPointer elementToCheck = elementBag.extract()) {
|
||||
if (elementToCheck->isInView(viewCopy)) {
|
||||
tempBag.insert(elementToCheck);
|
||||
|
|
|
@ -109,8 +109,6 @@ public:
|
|||
OctreeSceneStats* stats = IGNORE_SCENE_STATS,
|
||||
JurisdictionMap* jurisdictionMap = IGNORE_JURISDICTION_MAP,
|
||||
OctreeElementExtraEncodeData* extraEncodeData = NULL) :
|
||||
viewFrustum(),
|
||||
lastViewFrustum(),
|
||||
lastViewFrustumSent(lastViewFrustumSent),
|
||||
maxEncodeLevel(maxEncodeLevel),
|
||||
maxLevelReached(0),
|
||||
|
|
|
@ -22,8 +22,7 @@
|
|||
|
||||
OctreeRenderer::OctreeRenderer() :
|
||||
_tree(NULL),
|
||||
_managedTree(false),
|
||||
_viewFrustum()
|
||||
_managedTree(false)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -88,7 +88,6 @@ public:
|
|||
gpu::Batch* batch = nullptr) :
|
||||
_context(context),
|
||||
_renderer(renderer),
|
||||
_viewFrustums(),
|
||||
_sizeScale(sizeScale),
|
||||
_boundaryLevelAdjust(boundaryLevelAdjust),
|
||||
_renderMode(renderMode),
|
||||
|
|
|
@ -17,8 +17,6 @@
|
|||
#include <glm/glm.hpp>
|
||||
#include <glm/gtc/quaternion.hpp>
|
||||
|
||||
//#include <GLMHelpers.h>
|
||||
|
||||
#include "AABox.h"
|
||||
#include "AACube.h"
|
||||
#include "CubeProjectedPolygon.h"
|
||||
|
|
Loading…
Reference in a new issue