Merge branch 'master' into zone_count_in_level_file

This commit is contained in:
Lwmte 2023-01-28 18:25:11 +02:00
commit db090d1cd2

View file

@ -1934,7 +1934,10 @@ namespace TEN::Renderer
int meshIndex = Objects[ID_CAUSTICS_TEXTURES].meshIndex;
int causticsFrame = nmeshes ? meshIndex + ((GlobalCounter) % nmeshes) : 0;
BindTexture(TEXTURE_CAUSTICS, m_sprites[causticsFrame].Texture, SAMPLER_NONE);
if (m_sprites.size() > causticsFrame)
{
BindTexture(TEXTURE_CAUSTICS, m_sprites[causticsFrame].Texture, SAMPLER_NONE);
}
// Set shadow map data
if (shadowLight != nullptr)