| Previous | 15994 Revisions | Next |
| r14558 Monday 20th February, 2012 at 21:13:57 UTC by MooglyGuy |
|---|
| [N64] Added a trivial Y reject to N64 triangle draw commands. Fixes crashes in both Castlevania games, Virtual Pool, and maybe others. [Ryan Holtz] |
| [src/mame/video] | n64.c |
| r14557 | r14558 | |
|---|---|---|
| 2110 | 2110 | |
| 2111 | 2111 | int xfrac = ((xright >> 8) & 0xff); |
| 2112 | 2112 | |
| 2113 | int clipy1 = Scissor.m_yh; | |
| 2114 | int clipy2 = Scissor.m_yl; | |
| 2115 | ||
| 2116 | // Trivial reject | |
| 2117 | if((ycur >> 2) >= clipy2 && (ylfar >> 2) >= clipy2) | |
| 2118 | { | |
| 2119 | return; | |
| 2120 | } | |
| 2121 | if((ycur >> 2) < clipy1 && (ylfar >> 2) < clipy1) | |
| 2122 | { | |
| 2123 | return; | |
| 2124 | } | |
| 2125 | ||
| 2113 | 2126 | bool new_object = true; |
| 2114 | 2127 | rdp_poly_state *object = NULL; |
| 2115 | 2128 |
| Previous | 15994 Revisions | Next |