Render scene with indexed textures for vid_rendermode 2

This commit is contained in:
Magnus Norddahl 2025-05-19 05:55:03 +02:00
commit 990ce7c6c9
28 changed files with 380 additions and 127 deletions

View file

@ -111,7 +111,7 @@ void FThinkerCollection::RunThinkers(FLevelLocals *Level)
ThinkCycles.Clock();
bool dolights;
if ((gl_lights && vid_rendermode == 4) || (r_dynlights && vid_rendermode != 4) || Level->lightmaps)
if ((gl_lights && V_IsHardwareRenderer()) || (r_dynlights && V_IsSoftwareRenderer()) || Level->lightmaps)
{
dolights = true;// Level->lights || (Level->flags3 & LEVEL3_LIGHTCREATED) || Level->lightmaps;
}