use FTranslationID in the high level parts of the hardware renderer.

This commit is contained in:
Christoph Oelckers 2023-11-09 22:50:41 +01:00
commit 9f90c64727
11 changed files with 27 additions and 16 deletions

View file

@ -118,7 +118,7 @@ void FHWModelRenderer::SetInterpolation(double inter)
void FHWModelRenderer::SetMaterial(FGameTexture *skin, bool clampNoFilter, FTranslationID translation)
{
state.SetMaterial(skin, UF_Skin, 0, clampNoFilter ? CLAMP_NOFILTER : CLAMP_NONE, translation.index(), -1);
state.SetMaterial(skin, UF_Skin, 0, clampNoFilter ? CLAMP_NOFILTER : CLAMP_NONE, translation, -1);
state.SetLightIndex(modellightindex);
}