Skip to content

Commit

Permalink
Fixed OpenGL shadow textures not honoring texture type when reusing t…
Browse files Browse the repository at this point in the history
…extures
  • Loading branch information
Rudolph-B committed Sep 3, 2024
1 parent 61598c5 commit 359aaa4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/gles3/storage/light_storage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1521,6 +1521,11 @@ bool LightStorage::_shadow_atlas_find_shadow(ShadowAtlas *shadow_atlas, int *p_i
uint64_t min_pass = 0; // Pass of the existing one, try to use the least recently used one (LRU fashion).

for (int j = 0; j < sc; j++) {
if (sarr[j].owner_is_omni != is_omni) {
// Existing light instance type doesn't match new light instance type skip.
continue;
}

LightInstance *sli = light_instance_owner.get_or_null(sarr[j].owner);
if (!sli) {
// Found a released light instance.
Expand Down

0 comments on commit 359aaa4

Please sign in to comment.