Wojciech Lewandowski: "TexGenNode::TexGenNode( TexGen * texGen ) constructor does not initialize ReferenceFrame. I am not sure maybe this was the intent but first constructor does it so I don't see a reson why third one shouldn't."

This commit is contained in:
Robert Osfield 2007-02-21 15:15:55 +00:00
parent 35a466f400
commit 37e3114534
2 changed files with 10 additions and 1 deletions

View File

@ -29,7 +29,12 @@ State::State()
_modelView = _identity;
_abortRenderingPtr = false;
#if 1
_checkGLErrors = ONCE_PER_FRAME;
#else
_checkGLErrors = ONCE_PER_ATTRIBUTE;
#endif
_currentActiveTextureUnit=0;
_currentClientActiveTextureUnit=0;

View File

@ -35,8 +35,12 @@ TexGenNode::TexGenNode(const TexGenNode& cn, const CopyOp& copyop):
{
}
TexGenNode::TexGenNode(TexGen *texgen)
TexGenNode::TexGenNode(TexGen *texgen):
_referenceFrame(RELATIVE_RF)
{
// switch off culling of tex gen nodes by default.
setCullingActive(false);
_textureUnit = 0;
_value = StateAttribute::ON;
_stateset = new StateSet;