Fix models binding the lighttable texture to the the palette lookup texture

This fixes stuff becoming blue when models are on
This commit is contained in:
Alug 2026-04-30 12:59:39 -04:00 committed by NepDisk
parent 799b1ec0d3
commit af7b843690

View file

@ -2734,7 +2734,7 @@ static void DrawModelEx(model_t *model, INT32 frameIndex, float duration, float
if (Surface->LightTableId && Surface->LightTableId != lt_downloaded)
{
pglActiveTexture(GL_TEXTURE2);
pglActiveTexture(GL_TEXTURE3);
pglBindTexture(GL_TEXTURE_2D, Surface->LightTableId);
pglActiveTexture(GL_TEXTURE0);
lt_downloaded = Surface->LightTableId;