Skip to content

Commit

Permalink
#5960: Additional precaution against outdated surface indices
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed May 19, 2022
1 parent fdcdf73 commit fa46ff6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion radiantcore/rendersystem/backend/SurfaceRenderer.h
Expand Up @@ -116,7 +116,11 @@ class SurfaceRenderer :

for (auto slotIndex : _surfacesNeedingUpdate)
{
auto& surfaceInfo = _surfaces.at(slotIndex);
auto info = _surfaces.find(slotIndex);

if (info == _surfaces.end()) continue;

auto& surfaceInfo = info->second;

if (surfaceInfo.surfaceDataChanged)
{
Expand Down

0 comments on commit fa46ff6

Please sign in to comment.