--warnings
This commit is contained in:
@@ -911,7 +911,7 @@ SGPropertyNode_ptr
|
||||
SGPropertyNode::removeChild (int pos, bool keep)
|
||||
{
|
||||
SGPropertyNode_ptr node;
|
||||
if (pos < 0 || pos >= _children.size())
|
||||
if (pos < 0 || pos >= (int)_children.size())
|
||||
return node;
|
||||
|
||||
vector<SGPropertyNode_ptr>::iterator it = _children.begin();
|
||||
|
||||
@@ -1185,9 +1185,9 @@ private:
|
||||
|
||||
class hash_table;
|
||||
|
||||
int _index;
|
||||
string _name;
|
||||
mutable string _display_name;
|
||||
int _index;
|
||||
/// To avoid cyclic reference counting loops this shall not be a reference
|
||||
/// counted pointer
|
||||
SGPropertyNode * _parent;
|
||||
|
||||
@@ -905,7 +905,6 @@ void SGShadowVolume::deleteOccluderFromTile(ssgBranch *tile) {
|
||||
}
|
||||
|
||||
void SGShadowVolume::deleteOccluder(ssgBranch *occluder) {
|
||||
ssgBranch *branch = occluder;
|
||||
// skip first node and go to first transform (placement)
|
||||
while( occluder && !occluder->isA(ssgTypeTransform()))
|
||||
occluder = (ssgBranch *) occluder->getKid(0);
|
||||
@@ -919,9 +918,6 @@ void SGShadowVolume::deleteOccluder(ssgBranch *occluder) {
|
||||
}
|
||||
|
||||
void SGShadowVolume::addOccluder(ssgBranch *occluder, OccluderType occluder_type, ssgBranch *tile) {
|
||||
|
||||
ssgBranch *branch = occluder;
|
||||
|
||||
// skip first node and go to first transform (placement)
|
||||
while( occluder && !occluder->isA(ssgTypeTransform()))
|
||||
occluder = (ssgBranch *) occluder->getKid(0);
|
||||
|
||||
@@ -91,12 +91,12 @@ bool SGBbCache::allocTextureMemory(int cacheCount, int textureDimension) {
|
||||
|
||||
SGBbCache::SGBbCache(void) :
|
||||
bbListCount(0),
|
||||
cacheSizeKb(0),
|
||||
textureWH(0),
|
||||
cacheSizeKb(0),
|
||||
builtBBCount(0),
|
||||
frameNumber(0),
|
||||
rt(0),
|
||||
rtAvailable(false),
|
||||
frameNumber(0),
|
||||
maxImpostorRegenFrame(20)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user