fix clipper to handle output of 10 verts, instead of 8

This commit is contained in:
zeromus 2009-10-20 05:19:53 +00:00
parent ab20fa00ca
commit 959d551b34
1 changed files with 4 additions and 3 deletions

View File

@ -257,9 +257,10 @@ struct VIEWPORT {
void decode(u32 v);
};
//The worst case we've managed to think of so far would be a viewport zoomed in a little bit
//on a diamond, with cut-out bits in all four corners
#define MAX_CLIPPED_VERTS 8
//ok, imagine the plane that cuts diagonally across a cube such that it clips
//out to be a hexagon. within that plane, draw a quad such that it cuts off
//four corners of the hexagon, and you will observe a decagon
#define MAX_CLIPPED_VERTS 10
class GFX3D_Clipper
{