From Ronny Krueger:

In RenderStage.cpp removed erroneous else statement.

    In ShapeDrawable.cpp's PrimitiveShapeVisitor::apply(const Box& box) fixed
    order of the last face.
This commit is contained in:
Robert Osfield
2004-02-09 22:56:39 +00:00
parent 33201a8f25
commit 2af70e3c4c
2 changed files with 2 additions and 5 deletions

View File

@@ -1118,9 +1118,9 @@ void PrimitiveShapeVisitor::apply(const Box& box)
_functor.vertex(top_2);
_functor.vertex(top_3);
_functor.vertex(base_2);
_functor.vertex(base_3);
_functor.vertex(base_4);
_functor.vertex(base_3);
_functor.vertex(base_2);
_functor.vertex(base_1);
_functor.end();

View File

@@ -136,10 +136,7 @@ void RenderStage::drawImplementation(osg::State& state,RenderLeaf*& previous)
glClearColor( _clearColor[0], _clearColor[1], _clearColor[2], _clearColor[3]);
if (_clearMask & GL_DEPTH_BUFFER_BIT)
{
glClearDepth( _clearDepth);
}
else
if (_clearMask & GL_STENCIL_BUFFER_BIT)
glClearStencil( _clearStencil);