Browse Source

python: remove extra copy in gl.cpp

pull/20/head
Aaron Gokaslan 4 years ago committed by Vladimír Vondruš
parent
commit
75be40300b
  1. 2
      src/python/magnum/gl.cpp

2
src/python/magnum/gl.cpp

@ -380,7 +380,7 @@ void gl(py::module_& m) {
owner = Corrade::pyObjectFromInstance(glContextOwner->first, *glContextOwner->second);
}
return ContextHolder<GL::Context>{&GL::Context::current(), owner};
return ContextHolder<GL::Context>{&GL::Context::current(), std::move(owner)};
}, "Current context")
/** @todo context switching (needs additions to the "who owns
current context instance" variable -- a map?) */

Loading…
Cancel
Save