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

src/mame/video/n64.c
r14557r14558
21102110
21112111   int xfrac = ((xright >> 8) & 0xff);
21122112
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
21132126   bool new_object = true;
21142127   rdp_poly_state *object = NULL;
21152128

Previous 15994 Revisions Next


© 1998-2018 The MESS Team