Merge branch 'blender-v4.5-release'

This commit is contained in:
Brecht Van Lommel
2025-06-18 19:28:50 +02:00
2 changed files with 8 additions and 2 deletions

View File

@@ -157,7 +157,10 @@ void CUDADeviceGraphicsInterop::free()
cu_external_memory_ = nullptr;
}
cu_external_memory_ptr_ = 0;
if (cu_external_memory_ptr_) {
cuda_device_assert(device_, cuMemFree(cu_external_memory_ptr_));
cu_external_memory_ptr_ = 0;
}
# ifdef _WIN32
if (vulkan_windows_handle_) {

View File

@@ -105,7 +105,10 @@ void HIPDeviceGraphicsInterop::free()
hip_graphics_resource_ = nullptr;
}
hip_external_memory_ptr_ = 0;
if (hip_external_memory_ptr_) {
hip_device_assert(device_, hipFree(hip_external_memory_ptr_));
hip_external_memory_ptr_ = 0;
}
buffer_size_ = 0;