Don't fatal() on "triangle_setup wrong order". These usually means one
of the vertices is not valid.
This commit is contained in:
parent
0cbe6ae918
commit
f72da770f1
1 changed files with 4 additions and 1 deletions
|
|
@ -126,7 +126,10 @@ void voodoo_triangle_setup(voodoo_t *voodoo)
|
||||||
voodoo->params.vertexCy = (int32_t)(int16_t)((int32_t)(verts[vc].sVy * 16.0f) & 0xffff);
|
voodoo->params.vertexCy = (int32_t)(int16_t)((int32_t)(verts[vc].sVy * 16.0f) & 0xffff);
|
||||||
|
|
||||||
if (voodoo->params.vertexAy > voodoo->params.vertexBy || voodoo->params.vertexBy > voodoo->params.vertexCy)
|
if (voodoo->params.vertexAy > voodoo->params.vertexBy || voodoo->params.vertexBy > voodoo->params.vertexCy)
|
||||||
fatal("triangle_setup wrong order %d %d %d\n", voodoo->params.vertexAy, voodoo->params.vertexBy, voodoo->params.vertexCy);
|
{
|
||||||
|
pclog("triangle_setup wrong order %d %d %d\n", voodoo->params.vertexAy, voodoo->params.vertexBy, voodoo->params.vertexCy);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (voodoo->sSetupMode & SETUPMODE_RGB)
|
if (voodoo->sSetupMode & SETUPMODE_RGB)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue