Skip to content

Commit

Permalink
gi: dirty framebuffer when light is deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
pablode committed Dec 21, 2024
1 parent e386d31 commit 2c5d4c9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/gi/impl/Gi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2200,6 +2200,8 @@ namespace gtl
std::lock_guard guard(scene->mutex);

scene->sphereLights.free(light->gpuHandle);
scene->dirtyFlags |= GiSceneDirtyFlags::DirtyFramebuffer;

delete light;
}

Expand Down Expand Up @@ -2286,6 +2288,8 @@ namespace gtl
std::lock_guard guard(scene->mutex);

scene->distantLights.free(light->gpuHandle);
scene->dirtyFlags |= GiSceneDirtyFlags::DirtyFramebuffer;

delete light;
}

Expand Down Expand Up @@ -2372,6 +2376,8 @@ namespace gtl
std::lock_guard guard(scene->mutex);

scene->rectLights.free(light->gpuHandle);
scene->dirtyFlags |= GiSceneDirtyFlags::DirtyFramebuffer;

delete light;
}

Expand Down Expand Up @@ -2468,6 +2474,8 @@ namespace gtl
std::lock_guard guard(scene->mutex);

scene->diskLights.free(light->gpuHandle);
scene->dirtyFlags |= GiSceneDirtyFlags::DirtyFramebuffer;

delete light;
}

Expand Down

0 comments on commit 2c5d4c9

Please sign in to comment.