]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - svbsp.c
rewrote most of the VM_Polygon/DebugPolygon code, it should perform much
[xonotic/darkplaces.git] / svbsp.c
diff --git a/svbsp.c b/svbsp.c
index 7dcfffed61e75629e97c5f3654ae85996b712185..9d3ce1f82d70e875e7de188ff4c2e64547b001ee 100644 (file)
--- a/svbsp.c
+++ b/svbsp.c
@@ -264,7 +264,7 @@ static int SVBSP_AddPolygonNode(svbsp_t *b, int *parentnodenumpointer, int paren
 #if 0
                for (i = 0;i < numpoints-2;i++)
                {
-                       Debug_PolygonBegin(NULL, DRAWFLAG_ADDITIVE, false, 0);
+                       Debug_PolygonBegin(NULL, DRAWFLAG_ADDITIVE);
                        Debug_PolygonVertex(points[0], points[1], points[2], 0, 0, 0.25, 0, 0, 1);
                        Debug_PolygonVertex(points[0 + (i + 1) * 3], points[1 + (i + 1) * 3], points[2 + (i + 1) * 3], 0, 0, 0.25, 0, 0, 1);
                        Debug_PolygonVertex(points[0 + (i + 2) * 3], points[1 + (i + 2) * 3], points[2 + (i + 2) * 3], 0, 0, 0.25, 0, 0, 1);
@@ -292,7 +292,7 @@ static int SVBSP_AddPolygonNode(svbsp_t *b, int *parentnodenumpointer, int paren
 #if 0
                for (i = 0;i < numpoints-2;i++)
                {
-                       Debug_PolygonBegin(NULL, DRAWFLAG_ADDITIVE, false, 0);
+                       Debug_PolygonBegin(NULL, DRAWFLAG_ADDITIVE);
                        Debug_PolygonVertex(points[0], points[1], points[2], 0, 0, 0, 0, 0.25, 1);
                        Debug_PolygonVertex(points[0 + (i + 1) * 3], points[1 + (i + 1) * 3], points[2 + (i + 1) * 3], 0, 0, 0, 0, 0.25, 1);
                        Debug_PolygonVertex(points[0 + (i + 2) * 3], points[1 + (i + 2) * 3], points[2 + (i + 2) * 3], 0, 0, 0, 0, 0.25, 1);
@@ -314,7 +314,7 @@ int SVBSP_AddPolygon(svbsp_t *b, int numpoints, const double *points, int insert
 //if (insertoccluder)
        for (i = 0;i < numpoints-2;i++)
        {
-               Debug_PolygonBegin(NULL, DRAWFLAG_ADDITIVE, false, 0);
+               Debug_PolygonBegin(NULL, DRAWFLAG_ADDITIVE);
                Debug_PolygonVertex(points[0], points[1], points[2], 0, 0, 0, 0.25, 0, 1);
                Debug_PolygonVertex(points[0 + (i + 1) * 3], points[1 + (i + 1) * 3], points[2 + (i + 1) * 3], 0, 0, 0, 0.25, 0, 1);
                Debug_PolygonVertex(points[0 + (i + 2) * 3], points[1 + (i + 2) * 3], points[2 + (i + 2) * 3], 0, 0, 0, 0.25, 0, 1);