Simplify g3_draw_poly call stack
This commit is contained in:
parent
1a3d89aecf
commit
2cf0a0034a
|
@ -197,12 +197,6 @@ static inline void g3_draw_poly(uint_fast32_t nv, const array<cg3s_point *, N> &
|
|||
_g3_draw_poly(nv, &pointlist[0], color);
|
||||
}
|
||||
|
||||
template <std::size_t N>
|
||||
static inline void g3_draw_poly(const array<cg3s_point *, N> &pointlist, const uint8_t color)
|
||||
{
|
||||
g3_draw_poly(N, pointlist, color);
|
||||
}
|
||||
|
||||
constexpr std::size_t MAX_POINTS_PER_POLY = 25;
|
||||
|
||||
//draw a texture-mapped face.
|
||||
|
@ -250,7 +244,7 @@ bool do_facing_check(const array<cg3s_point *, 3> &vertlist);
|
|||
static inline void g3_check_and_draw_poly(const array<cg3s_point *, 3> &pointlist, const uint8_t color)
|
||||
{
|
||||
if (do_facing_check(pointlist))
|
||||
g3_draw_poly(pointlist, color);
|
||||
g3_draw_poly(pointlist.size(), pointlist, color);
|
||||
}
|
||||
|
||||
template <std::size_t N>
|
||||
|
|
Loading…
Reference in a new issue