Skip to content

Commit

Permalink
Prevent bound depal and framebuffer texture views from lingering betw…
Browse files Browse the repository at this point in the history
…een frames

Should help #19557
  • Loading branch information
hrydgard committed Oct 29, 2024
1 parent 2e85eb5 commit 10db7de
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions GPU/Vulkan/DrawEngineVulkan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ void DrawEngineVulkan::DeviceRestore(Draw::DrawContext *draw) {
void DrawEngineVulkan::BeginFrame() {
lastPipeline_ = nullptr;

// These will be re-bound if needed, let's not let old bindings linger around too long.
boundDepal_ = VK_NULL_HANDLE;
boundSecondary_ = VK_NULL_HANDLE;

// pushUBO is the thin3d push pool, don't need to BeginFrame again.
pushVertex_->BeginFrame();
pushIndex_->BeginFrame();
Expand Down

0 comments on commit 10db7de

Please sign in to comment.