Fixed VS warning

This commit is contained in:
Robert Osfield
2009-10-17 11:14:03 +00:00
parent 37b77a2665
commit 73ae1637c0
2 changed files with 7 additions and 2 deletions

View File

@@ -30,6 +30,10 @@ class OSG_EXPORT GLBeginEndAdapter
GLBeginEndAdapter(State* state=0);
void setState(State* state) { _state = state; }
State* setState() { return _state; }
const State* setState() const { return _state; }
enum MatrixMode
{
APPLY_LOCAL_MATRICES_TO_VERTICES,

View File

@@ -37,8 +37,7 @@ using namespace osg;
static ApplicationUsageProxy State_e0(ApplicationUsage::ENVIRONMENTAL_VARIABLE,"OSG_GL_ERROR_CHECKING <type>","ONCE_PER_ATTRIBUTE | ON | on enables fine grained checking, ONCE_PER_FRAME enables coarse grained checking");
State::State():
Referenced(true),
_glBeginEndAdapter(this)
Referenced(true)
{
_graphicsContext = 0;
_contextID = 0;
@@ -119,6 +118,8 @@ State::State():
_maxTexturePoolSize = 0;
_maxBufferObjectPoolSize = 0;
_glBeginEndAdapter.setState(this);
}
State::~State()