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:
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user