[sw] Set FP precision in R_DrawEntitiesOnList

This used to be handled by R_RenderView (encompassing all of the
rendering) before the scene rendering was moved out to r_screen. This
fixes the stuck time in 32-bit nq-win.
This commit is contained in:
Bill Currie 2022-03-21 21:59:07 +09:00
parent 2e1ddfed0d
commit 376a173e66
2 changed files with 4 additions and 2 deletions

View file

@ -645,8 +645,7 @@ R_AliasDrawModel (entity_t *ent, alight_t *lighting)
else
ziscale = (float) 0x8000 *(float) 0x10000 *3.0;
if (ent->visibility.trivial_accept
&& pmdl->ident != HEADER_MDL16) {
if (ent->visibility.trivial_accept && pmdl->ident != HEADER_MDL16) {
R_AliasPrepareUnclippedPoints ();
} else {
R_AliasPreparePoints ();

View file

@ -412,6 +412,7 @@ R_DrawEntitiesOnList (entqueue_t *queue)
if (!r_drawentities->int_val)
return;
R_LowFPPrecision ();
#define RE_LOOP(type_name) \
do { \
for (size_t i = 0; i < queue->ent_queues[mod_##type_name].size; \
@ -426,6 +427,8 @@ R_DrawEntitiesOnList (entqueue_t *queue)
RE_LOOP (alias);
RE_LOOP (iqm);
RE_LOOP (sprite);
R_HighFPPrecision ();
}
static void