trunk/src/emu/video/polynew.h
r24610 | r24611 | |
1104 | 1104 | template<typename _BaseType, class _ObjectData, int _MaxParams, int _MaxPolys> |
1105 | 1105 | int poly_manager<_BaseType, _ObjectData, _MaxParams, _MaxPolys>::zclip_if_less(int numverts, const vertex_t *v, vertex_t *outv, int paramcount, _BaseType clipval) |
1106 | 1106 | { |
1107 | | bool prevclipped = (v[numverts - 1]->p[0] < clipval); |
| 1107 | bool prevclipped = (v[numverts - 1].p[0] < clipval); |
1108 | 1108 | vertex_t *nextout = outv; |
1109 | 1109 | |
1110 | 1110 | // iterate over vertices |
1111 | 1111 | for (int vertnum = 0; vertnum < numverts; vertnum++) |
1112 | 1112 | { |
1113 | | bool thisclipped = (v[vertnum]->p[0] < clipval); |
| 1113 | bool thisclipped = (v[vertnum].p[0] < clipval); |
1114 | 1114 | |
1115 | 1115 | // if we switched from clipped to non-clipped, interpolate a vertex |
1116 | 1116 | if (thisclipped != prevclipped) |