- use the engine backend to render the scene

This commit is contained in:
Christoph Oelckers 2020-06-11 18:40:53 +02:00
parent 76884c1e18
commit 22aad4999c
19 changed files with 517 additions and 246 deletions

View file

@ -1591,7 +1591,7 @@ static int32_t polymost_md3draw(md3model_t *m, tspriteptr_t tspr)
{
double f = (double) (tspr->owner + 1) * (std::numeric_limits<double>::epsilon() * 8.0);
if (f != 0.0) f *= 1.0/(double) (sepldist(globalposx - tspr->x, globalposy - tspr->y)>>5);
GLInterface.SetDepthFunc(Depth_LessEqual);
GLInterface.SetDepthFunc(DF_LEqual);
}
int winding = ((grhalfxdown10x >= 0) ^((globalorientation&8) != 0) ^((globalorientation&4) != 0))? Winding_CW : Winding_CCW;
@ -1786,9 +1786,6 @@ static int32_t polymost_md3draw(md3model_t *m, tspriteptr_t tspr)
md3draw_handle_triangles(s, indexhandle, 1, NULL);
}
GLInterface.UseDetailMapping(false);
GLInterface.UseGlowMapping(false);
}
//------------