]> git.tdb.fi Git - libs/gl.git/commitdiff
Don't bother with clearing winding test
authorMikko Rasa <tdb@tdb.fi>
Fri, 29 Nov 2013 09:35:47 +0000 (11:35 +0200)
committerMikko Rasa <tdb@tdb.fi>
Fri, 29 Nov 2013 09:35:47 +0000 (11:35 +0200)
Why was that even there?  Winding test is stored as part of Renderer's
State, so it will be cleared by a pop.

source/mesh.cpp

index 07eaa68962a8952da9c4fa3f3e482a85c55d90dc..f8a7bcb215d8c5fd0bce934d23ddd16b7e8ea48d 100644 (file)
@@ -116,8 +116,6 @@ void Mesh::draw(Renderer &renderer) const
 
        for(list<Batch>::const_iterator i=batches.begin(); i!=batches.end(); ++i)
                renderer.draw(*i);
-
-       renderer.set_winding_test(0);
 }