Fix: Build error in overlay next from missing include

Switch to using FunctionRef over std::function which is generally
preferrable when the callback doesn't need to be stored for later.
This commit is contained in:
Hans Goudey
2024-11-24 13:28:45 -05:00
parent fdb1bec6c8
commit 4587a87b6e

View File

@@ -647,7 +647,7 @@ struct FlatObjectRef {
return -1;
}
using Callback = std::function<void(gpu::Batch *geom, ResourceHandle handle)>;
using Callback = FunctionRef<void(gpu::Batch *geom, ResourceHandle handle)>;
/* Execute callback for every handles that is orthogonal to the view.
* Note: Only works in orthogonal view. */