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:
parent
35a466f400
commit
37e3114534
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user