From 0b39152321060ef32f03b6138c5c096a35f5a3e2 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 13 Sep 2007 10:38:38 +0000 Subject: [PATCH] Fixed warnigns --- src/osgUtil/SceneView.cpp | 2 -- src/osgUtil/TriStrip_tri_stripper.cpp | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/osgUtil/SceneView.cpp b/src/osgUtil/SceneView.cpp index 2de213038..730641769 100644 --- a/src/osgUtil/SceneView.cpp +++ b/src/osgUtil/SceneView.cpp @@ -875,8 +875,6 @@ void SceneView::releaseAllGLObjects() void SceneView::flushAllDeletedGLObjects() { - osg::State* state = _renderInfo.getState(); - _requiresFlush = false; osg::flushAllDeletedGLObjects(getState()->getContextID()); diff --git a/src/osgUtil/TriStrip_tri_stripper.cpp b/src/osgUtil/TriStrip_tri_stripper.cpp index 7688f1f1c..1c08ca91b 100644 --- a/src/osgUtil/TriStrip_tri_stripper.cpp +++ b/src/osgUtil/TriStrip_tri_stripper.cpp @@ -152,7 +152,7 @@ void tri_stripper::InitCache() m_IndicesCache.clear(); if (m_CacheSize > 0) - m_IndicesCache.resize(m_CacheSize, static_cast(-1)); + m_IndicesCache.resize(m_CacheSize, static_cast(-1)); }