[fuchsia] Fix shader warmup. (flutter/engine#37662)
Before, ~VulkanSurface() invokes a potentially empty std::function. Now, checks if it is empty before invoking it.
This commit is contained in:
@@ -184,7 +184,7 @@ VulkanSurface::~VulkanSurface() {
|
||||
if (buffer_id_) {
|
||||
session_->DeregisterBufferCollection(buffer_id_);
|
||||
}
|
||||
} else {
|
||||
} else if (release_image_callback_) {
|
||||
release_image_callback_();
|
||||
}
|
||||
wait_.Cancel();
|
||||
|
||||
Reference in New Issue
Block a user