Pass data to modal reprojection cost functor by reference
Seems it solves alignment error reported by 32bit MSVC.
This commit is contained in:
@@ -56,7 +56,7 @@ void ModalSolverLogProress(ProgressUpdateCallback *update_callback,
|
||||
}
|
||||
|
||||
struct ModalReprojectionError {
|
||||
ModalReprojectionError(Vec2 marker, Vec3 bundle)
|
||||
ModalReprojectionError(Vec2 &marker, Vec3 &bundle)
|
||||
: marker(marker), bundle(bundle) { }
|
||||
|
||||
template <typename T>
|
||||
|
||||
Reference in New Issue
Block a user