Skip to content

Commit 85d0543

Browse files
committed
Add workaround for invalid handle assertion
1 parent b031806 commit 85d0543

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

filament/backend/src/vulkan/VulkanDriver.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1165,6 +1165,10 @@ FenceStatus VulkanDriver::getFenceStatus(Handle<HwFence> const fh) {
11651165
}
11661166

11671167
FenceStatus VulkanDriver::fenceWait(FenceHandle const fh, uint64_t const timeout) {
1168+
if (!fh) {
1169+
return FenceStatus::ERROR;
1170+
}
1171+
11681172
auto fence = resource_ptr<VulkanFence>::cast(&mResourceManager, fh);
11691173

11701174
// we have to take into account that the STL's wait_for() actually works with

0 commit comments

Comments
 (0)