1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-07 03:13:49 +00:00

Correct renderTriangles(): dzdx can be zero when all vertices have the same z.

This commit is contained in:
Sergey Lipskiy 2017-03-14 11:16:54 +07:00
parent 279b011b2d
commit 7c51f9455e

View File

@ -193,8 +193,6 @@ void renderTriangles(const SPVertex * _pVertices, const u8 * _pElements, u32 _nu
continue;
const int dzdx = ((orbits & CLIP_W) == 0) ? calcDzDx(vclip) : calcDzDx2(vsrc);
if (dzdx == 0)
continue;
if (orbits == 0) {
assert(numVertex == 3);