Fix memory error when placing images in viewport
PiperOrigin-RevId: 800148735 Change-Id: I1c12ef23b0af9538b285d032460cf832eb48bf49
This commit is contained in:
committed by
Copybara-Service
parent
643dc5bf4f
commit
79f2bbc727
@@ -198,7 +198,7 @@ class SimulateWrapper {
|
||||
}
|
||||
|
||||
void SetImages(
|
||||
const std::vector<std::tuple<mjrRect, pybind11::array&>> viewports_images
|
||||
const std::vector<std::tuple<mjrRect, pybind11::array>> viewports_images
|
||||
) {
|
||||
// TODO: replace with atomic wait when we migrate to C++20
|
||||
while (simulate_ && simulate_->newimagerequest.load() != 0) {
|
||||
|
||||
Reference in New Issue
Block a user