Prevent bound depal and framebuffer texture views from lingering between frames

Should help #19557
This commit is contained in:
Henrik Rydgård 2024-10-29 08:11:39 +01:00
parent 2e85eb5128
commit 10db7de53c

View File

@ -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();