Minor fixes to ReaderWriter and Paragraph to help work with use of Doxygen.
Fix to CullVisior to handle the new no referenced counted cull and draw traversal.
This commit is contained in:
@@ -510,7 +510,7 @@ void Geometry::drawImplementation(State& state) const
|
||||
if (_normalBinding==BIND_OFF) glNormal3f(0.0f,0.0f,1.0f);
|
||||
#endif
|
||||
|
||||
#if ISE_DEFAULT_COLOUR
|
||||
#if USE_DEFAULT_COLOUR
|
||||
if (_colorBinding==BIND_OFF) glColor4f(1.0f,1.0f,1.0f,1.0f);
|
||||
#endif
|
||||
|
||||
|
||||
@@ -802,9 +802,9 @@ ImpostorSprite* CullVisitor::createImpostorSprite(Impostor& node)
|
||||
// into account the new camera orientation.
|
||||
pushModelViewMatrix(rotate_matrix);
|
||||
|
||||
ref_ptr<StateSet> dummyState = new StateSet;
|
||||
if (!_localPreRenderState) _localPreRenderState = new StateSet;
|
||||
|
||||
pushStateSet(dummyState.get());
|
||||
pushStateSet(_localPreRenderState.get());
|
||||
|
||||
{
|
||||
|
||||
@@ -888,7 +888,7 @@ ImpostorSprite* CullVisitor::createImpostorSprite(Impostor& node)
|
||||
new_viewport->setViewport(center_x-new_s/2,center_y-new_t/2,new_s,new_t);
|
||||
rtts->setViewport(new_viewport);
|
||||
|
||||
dummyState->setAttribute(new_viewport);
|
||||
_localPreRenderState->setAttribute(new_viewport);
|
||||
|
||||
// create the impostor sprite.
|
||||
ImpostorSprite* impostorSprite =
|
||||
|
||||
Reference in New Issue
Block a user