MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / FreeTempPoint

Function FreeTempPoint

renderer/HardwareClipper.cpp:45–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45void FreeTempPoint(g3Point *p) {
46 if (free_point_num < 1) {
47 mprintf(1, "clipper: no temp points to free\n");
48 free_point_num = 1;
49 Int3();
50 }
51 ASSERT(p->p3_flags & PF_TEMP_POINT);
52
53 free_points[--free_point_num] = p;
54
55 p->p3_flags &= ~PF_TEMP_POINT;
56}
57
58// Verify that all the temp points are free, and free them it they are not.
59#ifdef _DEBUG

Callers 5

g3_DrawLineFunction · 0.85
g3_DrawSpecialLineFunction · 0.85
g3_FreeTempPointsFunction · 0.85
ClipLineFunction · 0.85
ClipPlaneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected